From 63dc9b399db9faef611c31629e0265b954d74197 Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Sun, 4 Oct 2015 19:35:27 -0400 Subject: Added texture support and textures --- include/common.h | 2 ++ include/entities.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/common.h b/include/common.h index 9f29fbb..b283ec8 100644 --- a/include/common.h +++ b/include/common.h @@ -41,6 +41,8 @@ enum GENDER{ template //this fuction returns the size of any array int eAmt(T (&)[N]){return N;} +GLuint loadTexture(const char *fileName); + extern bool gameRunning; extern unsigned int deltaTime; diff --git a/include/entities.h b/include/entities.h index b58d569..d4df811 100644 --- a/include/entities.h +++ b/include/entities.h @@ -30,7 +30,7 @@ public: char* name; GENDER gender; - unsigned int texture[]; //TODO: ADD TEXTURES + unsigned int texture; //TODO: ADD TEXTURES void spawn(float, float); -- cgit v1.2.3