|     29 	~GridProgram() = default; | 
    29 	~GridProgram() = default; | 
|     30 	void initialize(); | 
    30 	void initialize(); | 
|     31 	void setViewMatrix(const glm::mat4& newViewMatrix); | 
    31 	void setViewMatrix(const glm::mat4& newViewMatrix); | 
|     32 	void setProjectionMatrix(const glm::mat4& newProjectionMatrix); | 
    32 	void setProjectionMatrix(const glm::mat4& newProjectionMatrix); | 
|     33 	void setModelMatrix(const glm::mat4& newModelMatrix); | 
    33 	void setModelMatrix(const glm::mat4& newModelMatrix); | 
|         | 
    34 	void setGridMatrix(const glm::mat4& newGridMatrix); | 
|     34 	void setGridColor(const QColor& newGridColor); | 
    35 	void setGridColor(const QColor& newGridColor); | 
|     35 	void operator=(GridProgram) = delete; | 
    36 	void operator=(GridProgram) = delete; | 
|     36 	void draw(); | 
    37 	void draw(); | 
|     37 	void teardown(); | 
    38 	void teardown(); | 
|     38 private: | 
    39 private: | 
|         | 
    40 	void setMatrix(const char* name, const glm::mat4& matrix); | 
|     39 	void checkForGLErrors(); | 
    41 	void checkForGLErrors(); | 
|     40 	bool isInitialized = false; | 
    42 	bool isInitialized = false; | 
|     41 	QOpenGLBuffer buffer; | 
    43 	QOpenGLBuffer buffer; | 
|     42 	QOpenGLShader vertexShader; | 
    44 	QOpenGLShader vertexShader; | 
|     43 	QOpenGLShader fragmentShader; | 
    45 	QOpenGLShader fragmentShader; |