src/gl/basicshaderprogram.h

changeset 250
2837b549e616
parent 216
c7241f504117
child 259
c27612f0eac0
equal deleted inserted replaced
249:37d3c819cafa 250:2837b549e616
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(

mercurial