--- a/src/gl/gridprogram.h Thu Feb 13 15:25:01 2020 +0200 +++ b/src/gl/gridprogram.h Wed Feb 26 02:21:07 2020 +0200 @@ -31,6 +31,7 @@ void setViewMatrix(const glm::mat4& newViewMatrix); void setProjectionMatrix(const glm::mat4& newProjectionMatrix); void setModelMatrix(const glm::mat4& newModelMatrix); + void setGridColor(const QColor& newGridColor); void operator=(GridProgram) = delete; void draw(); void teardown(); @@ -41,5 +42,6 @@ QOpenGLShader vertexShader; QOpenGLShader fragmentShader; std::optional<gl::ShaderProgram> program{std::nullopt}; + glm::vec4 gridColor = {1.0f, 1.0f, 1.0f, 0.75f}; QOpenGLVertexArrayObject vertexArrayObject; };