blob: f057374ac38766c96a21806e38784be75daac518 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#include "koopatlas/core.h"
class dWorldCamera_c : public dBase_c {
public:
int onCreate();
int onDelete();
int onExecute();
int onDraw();
dWorldCamera_c();
EGG::Screen screen;
EGG::LookAtCamera camera3d;
EGG::ProjectOrtho projection2d;
EGG::LookAtCamera camera2d;
Vec camPos, camTarget, camUp;
float currentX, currentY, zoomLevel;
void calculateScreenGeometry();
float zoomDivisor, screenLeft, screenTop, screenWidth, screenHeight;
void doStuff(float);
void generateCameraMatrices();
void updateCameras();
static dWorldCamera_c *build();
static dWorldCamera_c *instance;
};
|