blob: e66dffaee5df2f0e8ed1692364ed9b5a0878bc14 (
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
38
39
40
41
42
43
44
45
46
47
|
/*
* viewpoint.h
* 3dnav
*
* Created by Tim Redfern on 20/12/2011.
* one projector's viewpoint
*
*/
#include "ofMain.h"
#include "mapUtils.h"
#include "keyVar.h"
class viewpoint {
public:
void setup(float w, float h, float x, float y);
void begin();
void end();
void keyPressed(int key);
void keyReleased(int key);
void setLight();
ofFbo renderFBO;
float distortFactor;
private:
ofRectangle window;
double fov,aspect,near,far;
ofCamera camera;
ofNode target;
keyVar* vars;
int lightNum;
GLfloat lightColour[];
GLfloat* getLightPosition;
ofLight light;
};
|