src/layers/gridlayer.h

changeset 378
01537fbe096e
parent 264
76a025db4948
equal deleted inserted replaced
377:e1c5e4310f8b 378:01537fbe096e
20 #include "src/gl/basicshaderprogram.h" 20 #include "src/gl/basicshaderprogram.h"
21 #include "src/gl/common.h" 21 #include "src/gl/common.h"
22 22
23 class GridLayer final : public RenderLayer 23 class GridLayer final : public RenderLayer
24 { 24 {
25 BasicShader shader; 25 gl::basic_shader shader;
26 glm::vec4 gridColor = {1.0f, 1.0f, 1.0f, 0.75f}; 26 glm::vec4 gridColor = {1.0f, 1.0f, 1.0f, 0.75f};
27 glm::mat4 gridMatrix{1}; 27 glm::mat4 gridMatrix{1};
28 bool isInitialized = false; 28 bool isInitialized = false;
29 public: 29 public:
30 void setGridMatrix(const glm::mat4& newGridMatrix); 30 void setGridMatrix(const glm::mat4& newGridMatrix);

mercurial