gramods
Loading...
Searching...
No Matches
CubeSceneRenderer.hh
1
2#ifndef GRAMODS_GRAPHICS_CUBESCENERENDERER
3#define GRAMODS_GRAPHICS_CUBESCENERENDERER
4
5#include <gmGraphics/Renderer.hh>
6
7#include <gmCore/io_eigen.hh>
8#include <gmCore/OFactory.hh>
9
10BEGIN_NAMESPACE_GMGRAPHICS;
11
17 : public Renderer {
18
19public:
20
22
26 void render(const Camera &camera, const Eigen::Affine3f &Mm) override;
27
34 void getNearFar(const Camera &camera,
35 const Eigen::Affine3f &Mm,
36 float &near,
37 float &far) override;
38
44 void setCubeSize(float d);
45
51 void setCubeSetSize(float d);
52
58 void setAnimate(bool on);
59
60 GM_OFI_DECLARE;
61
62private:
63
64 struct Impl;
65 std::unique_ptr<Impl> _impl;
66
67};
68
69END_NAMESPACE_GMGRAPHICS;
70
71#endif
The base of graphics Camera implementations.
Definition Camera.hh:19
A renderer that draws a set of cubes, for demonstration and testing purposes.
Definition CubeSceneRenderer.hh:17
The base of graphics Renderer implementations.
Definition Renderer.hh:17
Definition CubeSceneRenderer.cpp:23