Sun, 24 Oct 2021 11:33:32 +0300
update
70 | 1 | #pragma once |
2 | #include "gl/common.h" | |
3 | #include "gl/basicshaderprogram.h" | |
69 | 4 | |
70 | 5 | class AxesProgram : public AbstractBasicShaderProgram |
69 | 6 | { |
70 | 7 | Q_OBJECT |
69 | 8 | public: |
70 | 9 | using AbstractBasicShaderProgram::AbstractBasicShaderProgram; |
10 | protected: | |
11 | const char* vertexShaderSource() const override; | |
12 | const char* fragmentShaderSource() const override; | |
13 | const void* vertexData() const override; | |
14 | GLenum drawMode() const override; | |
15 | int vertexSize() const override; | |
16 | int vertexCount() const override; | |
17 | void setupVertexArrays() override; | |
118 | 18 | QOpenGLBuffer::UsagePattern usagePattern() const override; |
69 | 19 | }; |