diff -r f7dd937667a5 -r f99d52b1646b src/gl/gridprogram.h --- a/src/gl/gridprogram.h Fri Feb 28 19:24:33 2020 +0200 +++ b/src/gl/gridprogram.h Sat Feb 29 23:43:38 2020 +0200 @@ -31,11 +31,13 @@ void setViewMatrix(const glm::mat4& newViewMatrix); void setProjectionMatrix(const glm::mat4& newProjectionMatrix); void setModelMatrix(const glm::mat4& newModelMatrix); + void setGridMatrix(const glm::mat4& newGridMatrix); void setGridColor(const QColor& newGridColor); void operator=(GridProgram) = delete; void draw(); void teardown(); private: + void setMatrix(const char* name, const glm::mat4& matrix); void checkForGLErrors(); bool isInitialized = false; QOpenGLBuffer buffer;