summaryrefslogtreecommitdiff
path: root/src/viewpoint.h
blob: 2a43a2d2af310dcce9b0db2a75f368e239e34027 (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
/*
 *  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(int ln,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[];

};