Hue shift + events to camera
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user