Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
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
CameraHead
Definition:
camerahead.h:12
Viewport
Definition:
viewport.h:6
StereoRenderInfo
Definition:
stereorenderinfo.h:14
Scene
Definition:
scene.h:14
View
Definition:
view.h:9
Viewer
Definition:
viewer.h:12
src
display
viewer.h
Generated on Sun Mar 30 2014 13:32:30 for Voxellancer by
1.8.6