-
Notifications
You must be signed in to change notification settings - Fork 1
/
Camera.h
executable file
·42 lines (36 loc) · 905 Bytes
/
Camera.h
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
#pragma once
#include "opengl.h"
#include <set>
#include <math.h>
#include <array>
#include "Logger.h"
#include "utilities.h"
/**
* Handle the Camera for OpenGL
*/
class Camera {
private:
public:
/**
* Construct with the default values in config.h
*
* \ref p is initialized with POS_* from config.h
*
* \ref o and \ref r are initstate with ORI_* from config.h and
* normalized
*
* \ref d is set to zero
*/
Camera();
/**
* Calculate the next position
*
* \param physicDelta Relative move to compute by step, the smaller, the
* more it will be but the more call it will need
*/
void physic(const double &physicDelta);
/**
* Launch gluLookAt with the current state
*/
void look();
};