--- a/src/gl/vertexprogram.h Tue Jul 27 16:29:00 2021 +0300 +++ b/src/gl/vertexprogram.h Wed Jul 28 08:23:09 2021 +0300 @@ -6,6 +6,11 @@ class VertexProgram : public AbstractBasicShaderProgram { public: + enum FragmentStyle + { + Normal, + Id + }; struct Vertex { glm::vec3 position; @@ -22,8 +27,10 @@ void setupVertexArrays() override; GLenum drawMode() const override; QOpenGLBuffer::UsagePattern usagePattern() const override; + void setFragmentStyle(FragmentStyle newFragmentStyle); private: std::vector<Vertex> data; + FragmentStyle fragmentStyle = Normal; }; #endif // VERTEXPROGRAM_H