Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
monoview.h
1 #pragma once
2 
3 #include <string>
4 #include <memory>
5 
6 #include "view.h"
7 #include "property/property.h"
8 
9 
10 class Scene;
11 class Camera;
12 class CameraHead;
13 
14 class MonoView: public View {
15 public:
16  MonoView(const Viewport& viewport);
17 
18  virtual void setViewport(const Viewport& viewport) override;
19 
20  virtual float fovy() const override;
21  virtual float zNear() const override;
22  virtual float aspectRatio() const override;
23 
24  virtual void draw(const Scene& scene, const CameraHead& cameraHead) override;
25 
26 
27 protected:
28  std::unique_ptr<Camera> m_camera;
29  Property<std::string> m_antialiasing;
30 };
31 
Definition: camerahead.h:12
Definition: viewport.h:6
Definition: camera.h:10
Definition: monoview.h:14
Definition: scene.h:14
Definition: view.h:9