-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapplication.hpp
55 lines (41 loc) · 1.19 KB
/
application.hpp
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
#ifndef _APPLICATION_HPP_
#define _APPLICATION_HPP_
// Defining the ESCAPE Key Code
#define ESCAPE 27
// Defining the DELETE Key Code
#define DELETE 127
// Maximum number of vertices possible in an object
#define MAX_VERTICES 1000000
#include <iostream>
#include <fstream>
#include "gl_framework.hpp"
#include "shader_util.hpp"
#include "glm/vec3.hpp"
#include "glm/vec4.hpp"
#include "glm/mat4x4.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/type_ptr.hpp"
#include "legolization/LegoBlock.h"
using namespace std;
// Translation Parameters
GLfloat xpos = 0.0, ypos = 0.0, zpos = 0.0;
// Rotation Parameters
GLfloat xrot = 0.0, yrot = 0.0, zrot = 0.0;
//vertices in homogenous coordinates
glm::vec4 v_positions[MAX_VERTICES];
//RGBA colors
glm::vec4 v_colors[MAX_VERTICES];
// cuurent number of vertices
int num_vertices = 0;
//Running variable to toggle culling on/off
bool enable_culling = true;
//Running variable to toggle wireframe/solid modelling
bool solid = true;
// window_size
int window_size_x = 512;
int window_size_y = 512;
double view_x = 20.0;
double view_y = 20.0;
double view_z = 20.0;
//-------------------------------------------------------------------------
#endif