| 9 int stride; |
9 int stride; |
| 10 }; |
10 }; |
| 11 |
11 |
| 12 //! @brief A collection of a single VAO with a single VBO, |
12 //! @brief A collection of a single VAO with a single VBO, |
| 13 //! a vertex shader and a fragment shader. |
13 //! a vertex shader and a fragment shader. |
| 14 class BasicShader final : protected QOpenGLFunctions |
14 class BasicShader final |
| 15 { |
15 { |
| 16 bool isInitialized = false; |
16 bool isInitialized = false; |
| 17 QOpenGLBuffer buffer; |
17 QOpenGLBuffer buffer; |
| 18 QOpenGLShader vertexShader; |
18 QOpenGLShader vertexShader; |
| 19 QOpenGLShader fragmentShader; |
19 QOpenGLShader fragmentShader; |