src/gl/vertexprogram.h

changeset 119
24275a4064f4
parent 118
8e1c9f18ae15
child 200
ca23936b455b
--- 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

mercurial