-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.h
61 lines (47 loc) · 1.04 KB
/
input.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef INPUT_H
#define INPUT_H
#include <stdlib.h>
#include "GL/glut.h"
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include <iostream>
#include "matrix4x4f.h"
#include <cmath>
#include "vector3f.h"
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
#include "octree.h"
extern Octree *o;
class input{
public:
int height; // Screen height
int width; // Screen width
// test to private then
vector3f direction;
glm::mat4 Projection;
glm::mat4 View;
glm::vec3 Camera;
glm::mat4 model;
// Fun
input();
~input();
void reset();
void updateProjection();
void updateView();
void updateModel();
void onReshape(int width, int height);
void MyKeyboardFunc(unsigned char Key, int x, int y);
void MyKeyboardFunc(int Key, int x, int y);
private:
float sf_trlz[2];
int max_col;
float dolly;
float zoom;
void SetZoom(float in_zoom);
void SetDolly(float in_dolly);
void MoveObj(float in_x, float in_y, float in_z);
void RotObj(float in_x, float in_y, float in_z, float dir);
};
#endif