Hue shift + events to camera

This commit is contained in:
2020-06-23 00:38:55 -06:00
parent b106c1c028
commit af761ca337
4 changed files with 68 additions and 23 deletions

View File

@@ -46,11 +46,15 @@ public:
void draw(const Matrix4 &transformation, SceneGraph::Camera3D &camera);
void count(int count);
void hue(float hue);
void t(float t);
private:
Shaders::Phong &m_shader;
GL::Mesh &m_mesh;
int m_count;
float m_hue;
float m_t;
};
class MagnumRenderer {
@@ -68,6 +72,7 @@ public:
void t(float t);
void hue(float hue);
void count(int count);
Containers::Optional<ArcBallCamera> camera();
private:
void lazyInitialize();
@@ -91,6 +96,7 @@ private:
GL::Mesh m_grid{NoCreate};
Shaders::Flat3D m_gridShader{NoCreate};
Object3D* m_gridObject{nullptr};
GridDrawable* m_gridDrawable{nullptr};
};
#endif // MAGNUM_RENDER_H