4 #include <QOpenGLBuffer>
5 #include <QOpenGLShaderProgram>
6 #include <QOpenGLFunctions>
8 class Axis : protected QOpenGLFunctions
12 void setScale(QVector3D min, QVector3D max);
13 void draw(QMatrix4x4 transMat, QMatrix4x4 viewMat,
14 QMatrix4x4 orientMat, QMatrix4x4 aspectMat, float aspectRatio);
16 QOpenGLShaderProgram shader;
17 QOpenGLBuffer vertices, //GL Buffer for model-space coords
18 flowerAxisVertices; //GL Buffer for hud-space axis lines
19 QOpenGLBuffer flowerLabelVertices[3];//Buffer for hud-space label lines