-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexperimentalHeader.h
More file actions
89 lines (65 loc) · 1.37 KB
/
experimentalHeader.h
File metadata and controls
89 lines (65 loc) · 1.37 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#ifndef experimentalHeader
#define experimantalHeader
// changing macros require project rebuilding
#if 0
#define NO_CAM_MOVEMENT
#endif
#define CHUNK_SIZE 4
#define CHUNK_LOG_SIZE 2
#define __chunkIndexer(x, y) ((y<<CHUNK_LOG_SIZE)|x)
#ifdef DEPS
#include <iostream>
#include <cstdlib>
#include <cstdint>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform.hpp>
#endif
#ifdef VIEW
namespace view {
extern GLFWwindow* window;
extern float deltaTime;
extern float frameL;
extern int frameCnt;
extern int blockInd;
}
#include "view/opengl.hpp"
//global instance of only block needed right now
namespace view {
extern shape* block;
}
#endif
#ifdef BLOCKS
#include "blocks/blocks.hpp"
#endif
#ifdef ANIM
#include "blocks/animators.hpp"
namespace obj {
extern GLuint textureAtlas;
}
#endif
#ifdef CHUNK
#include "controller/chunk.hpp"
namespace con {
extern chunk* curr;
extern int cX;
extern int cY;
}
extern con::chunk *ch;
#endif
#ifdef WORLD
#include "controller/worldspace.h"
extern con::worldspace *world;
#endif
#ifdef PLAYER
#include "controller/player.hpp"
#endif
extern float blockScale;
extern glm::mat4 MVP;
extern glm::mat4 scaledMVP;
extern glm::mat4 centreTransfromation;
extern int windowHeight;
extern int windowWidth;
#endif