aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-01-10 21:03:33 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-01-10 21:03:33 -0500
commit75a5569ed0d44494da379822aa5de519e4a4025b (patch)
tree1100ae214ad3a9eceac969d4796ef1ae825e8fb7 /include/common.h
parent5c7c99ac5fe1158adbdf0469fb36ddd153511f5d (diff)
parenta0597ff41fb4be979f9dfd70ace8be98a737affb (diff)
Work on player texture
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 5713c56..8552720 100644
--- a/include/common.h
+++ b/include/common.h
@@ -10,10 +10,12 @@
#include <iostream>
#include <cstdlib>
+#include <string>
#include <vector>
#include <math.h>
#include <string>
#include <fstream>
+#include <thread>
#define GLEW_STATIC
#include <GL/glew.h>
@@ -34,7 +36,7 @@ typedef unsigned int uint;
* This flag lets the compiler know that we want to use shaders.
*/
-#define SHADERSs
+#define SHADERS
/**
* This structure contains a set of coordinates for ease of coding.
@@ -45,6 +47,12 @@ typedef struct {
float y;
} vec2;
+typedef struct {
+ float x;
+ float y;
+ float z;
+} vec3;
+
/**
* This structure contains two sets of coordinates for ray drawing.
*/
@@ -141,6 +149,8 @@ extern vec2 offset;
*/
extern unsigned int loops;
+extern GLuint shaderProgram;
+
/**
* This class contains a string for identification and a value. It can be used to
* save certain events for and decisions so that they can be recalled later.
@@ -190,4 +200,6 @@ void safeSetColorA(int r,int g,int b,int a);
unsigned int millis(void);
#endif // __WIN32__
+int getdir(const char *dir, std::vector<std::string> &files);
+
#endif // COMMON_H