17 QOpenGLBuffer buffer; |
17 QOpenGLBuffer buffer; |
18 QOpenGLShader vertexShader; |
18 QOpenGLShader vertexShader; |
19 QOpenGLShader fragmentShader; |
19 QOpenGLShader fragmentShader; |
20 std::unique_ptr<gl::ShaderProgram> program = nullptr; |
20 std::unique_ptr<gl::ShaderProgram> program = nullptr; |
21 QOpenGLVertexArrayObject vertexArrayObject; |
21 QOpenGLVertexArrayObject vertexArrayObject; |
22 std::size_t vertexCount = 0; |
22 int vertexCount = 0; |
23 public: |
23 public: |
24 BasicShader(); |
24 BasicShader(); |
25 ~BasicShader(); |
25 ~BasicShader(); |
26 Q_DISABLE_COPY(BasicShader) |
26 Q_DISABLE_COPY(BasicShader) |
27 void initialize( |
27 void initialize( |