The Game Engine
1
Main Page
Related Pages
Classes
Files
File List
File Members
Camera.h
Go to the documentation of this file.
1
#ifndef __CAMERA_H__
2
#define __CAMERA_H__
3
#include "
fns.h
"
4
#include "
WorldObject.h
"
5
13
class
Camera
14
{
15
public
:
16
Camera
():
mObject
(NULL),
pos
(),
mPadding
(),
mZoom
(1.00){}
17
19
Point2D
pos
;
20
26
void
follow
(
WorldObject
* o,
Point2D
padding =
Point2D
());
27
31
void
stopFollow
();
32
37
void
move
(
Point2D
p);
38
42
void
updatePos
();
43
48
void
zoom
(
double
zoom
);
49
54
void
zoomIn
(
double
zoom
);
55
60
void
zoomOut
(
double
zoom
);
61
62
protected
:
64
WorldObject
*
mObject
;
66
Point2D
mPadding
;
68
double
mZoom
;
69
70
};
71
72
#endif
Camera.h
Generated on Tue Apr 16 2013 02:32:41 for The Game Engine by
1.8.3.1