31 const ColorTable& colorTable; |
31 const ColorTable& colorTable; |
32 QPointF lastMousePosition; |
32 QPointF lastMousePosition; |
33 QQuaternion rotation; |
33 QQuaternion rotation; |
34 gl::Compiler* compiler; |
34 gl::Compiler* compiler; |
35 gl::RenderStyle renderStyle = gl::RenderStyle::Normal; |
35 gl::RenderStyle renderStyle = gl::RenderStyle::Normal; |
36 struct |
|
37 { |
|
38 QOpenGLShaderProgram* program = nullptr; |
|
39 QOpenGLBuffer buffer{QOpenGLBuffer::VertexBuffer}; |
|
40 QOpenGLVertexArrayObject vertexArray; |
|
41 } objects; |
|
42 bool initialized = false; |
36 bool initialized = false; |
43 void initializeLighting(); |
37 void initializeLighting(); |
44 void renderVao(const gl::ArrayClass arrayClass); |
38 void renderVao(const gl::ArrayClass arrayClass); |
45 void checkForGLErrors(); |
39 void checkForGLErrors(); |
46 }; |
40 }; |