src/gl/gridprogram.h

changeset 156
65b75beed7e0
parent 118
8e1c9f18ae15
child 216
c7241f504117
--- a/src/gl/gridprogram.h	Fri Mar 04 23:41:58 2022 +0200
+++ b/src/gl/gridprogram.h	Sat Mar 05 00:44:15 2022 +0200
@@ -24,7 +24,7 @@
 {
 	Q_OBJECT
 public:
-	using AbstractBasicShaderProgram::AbstractBasicShaderProgram;
+	GridProgram(QObject* parent = nullptr);
 	void setGridMatrix(const glm::mat4& newGridMatrix);
 	void setGridColor(const QColor& newGridColor);
 protected:
@@ -38,4 +38,5 @@
 	QOpenGLBuffer::UsagePattern usagePattern() const override;
 private:
 	glm::vec4 gridColor = {1.0f, 1.0f, 1.0f, 0.75f};
+	std::vector<glm::vec2> gridData;
 };

mercurial