-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloops.h
48 lines (33 loc) · 1.17 KB
/
loops.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
#ifndef LOOPS_H
#define LOOPS_H
#include "object.h"
#include "frustum.h"
#include <jsoncpp/json/json.h>
class Loops : public Object {
public:
//Loops();
Loops(Json::Value settings, vec3 cameraPosition);
void display(const GLuint& program, const mat4& world2view, const mat4& projection, vec3 light_int) override;
void update(int time_elapsed, vec3 cameraPosition, vec3 lookAtPoint, std::map<char, bool> keys_pressed) override;
~Loops() override;
void create_new_loop(vec3 cameraPosition);
private:
std::string waypointer_filename;
float sc;
float waypointer_sc;
vec3 loopPos;
float allowedSpace_y_low = 150;
float allowedSpace_y_high = 150;
float offset_distance = 1;
bool wasInsideLastFrame = false;
float radius = 0;
float length(vec3 v);
void calculate_radius();
// WAYPOINTER
Model* waypoint_model;
mat4 waypoint_rotation = IdentityMatrix();
mat4 waypoint_translation = IdentityMatrix();
mat4 waypoint_scale = IdentityMatrix();
vec3 waypoint_position = vec3(0,0,0);
};
#endif