summaryrefslogtreecommitdiff
path: root/src/viewpoint.h
blob: c1a0985eb7780e6b6aaa6ae3d2aca08ade41b085 (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
/*
 *  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);

    private:

        ofRectangle window;

        float distortFactor;
        ofFbo renderFBO;

        double fov,aspect,near,far;

        ofCamera camera;
        ofNode target;

        keyVar* vars;

};