]> git.tdb.fi Git - r2c2.git/blob - source/3d/view.h
Strip Id tags and copyright notices from files
[r2c2.git] / source / 3d / view.h
1 #ifndef R2C2_3D_VIEW_H_
2 #define R2C2_3D_VIEW_H_
3
4 #include <msp/gl/camera.h>
5 #include <msp/gl/pipeline.h>
6
7 namespace R2C2 {
8
9 class Layout3D;
10
11 class View3D
12 {
13 protected:
14         Layout3D &layout;
15         Msp::GL::Camera camera;
16         Msp::GL::Pipeline pipeline;
17
18 public:
19         View3D(Layout3D &, unsigned, unsigned);
20
21         Layout3D &get_layout() const { return layout; }
22         Msp::GL::Camera &get_camera() { return camera; }
23         Msp::GL::Pipeline &get_pipeline() { return pipeline; }
24
25         void view_all(bool = false);
26
27         void render();
28 };
29
30 } // namespace R2C2
31
32 #endif