Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
viewer.h
1 #pragma once
2 
3 #include <memory>
4 
5 #include "geometry/viewport.h"
6 
7 class CameraHead;
8 class Scene;
9 class StereoRenderInfo;
10 class View;
11 
12 class Viewer {
13 public:
14  Viewer(const Viewport& viewport);
15  ~Viewer();
16 
17  const View& view() const;
18 
19  void setViewport(const Viewport& viewport);
20 
21  void switchToMonoView();
22  void switchToStereoView(const StereoRenderInfo& stereoRenderInfo);
23 
24  void update(float deltaSec);
25 
26  void draw(const Scene& scene, const CameraHead& cameraHead);
27 
28 
29 protected:
30  std::unique_ptr<View> m_view;
31  Viewport m_viewport;
32 };
33 
Definition: camerahead.h:12
Definition: viewport.h:6
Definition: stereorenderinfo.h:14
Definition: scene.h:14
Definition: view.h:9
Definition: viewer.h:12