Molecule Viewer
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
Pages
source
Camera.hpp
1
#ifndef _CAMERA_HPP_
2
#define _CAMERA_HPP_
3
4
#include "SceneObject.hpp"
5
#include "common.hpp"
6
7
9
class
Camera
:
public
SceneObject
{
10
11
public
:
12
14
20
Camera
();
21
23
29
Camera
(
int
windowWidth,
int
windowHeight);
30
31
virtual
~
Camera
();
32
34
void
SetViewMatrix
(glm::mat4 viewMatrix);
35
37
void
SetModelMatrix
(glm::mat4 model);
38
40
glm::mat4
GetViewMatrix
()
const
;
41
43
glm::mat4
GetProjectionMatrix
()
const
;
44
46
void
UpdateProjectionMatrix
(
int
windowWidth,
int
windowHeight,
float
far);
47
48
49
50
private
:
51
53
glm::mat4 * _projectionMatrix;
54
55
};
56
57
#endif //#ifndef _CAMERA_HPP_
Generated on Thu Jun 6 2013 18:42:59 for Molecule Viewer by
1.8.3.1