Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
view.h
1 #pragma once
2 
3 #include "geometry/viewport.h"
4 
5 
6 class CameraHead;
7 class Scene;
8 
9 class View {
10 public:
11  View(const Viewport& viewport);
12  virtual ~View();
13 
14  virtual float fovy() const = 0;
15  virtual float zNear() const = 0;
16  virtual float aspectRatio() const = 0;
17 
18  virtual void setViewport(const Viewport& viewport);
19 
20  virtual void draw(const Scene& scene, const CameraHead& cameraHead) = 0;
21 
22 
23 protected:
24  Viewport m_viewport;
25 };
26 
Definition: camerahead.h:12
Definition: viewport.h:6
Definition: scene.h:14
Definition: view.h:9