From cd0236b94d5ecd2378518876820be201b9c635be Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 26 Feb 2016 08:47:49 -0500 Subject: c++'d texture loading --- include/Texture.h | 4 ++-- include/common.h | 2 +- include/world.h | 10 +++++++--- 3 files changed, 10 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/Texture.h b/include/Texture.h index c6376cb..659c32d 100644 --- a/include/Texture.h +++ b/include/Texture.h @@ -27,13 +27,13 @@ namespace Texture{ * later referencing of the texture. */ - GLuint loadTexture(const char *fileName); + GLuint loadTexture(std::string fileName); void freeTextures(void); void initColorIndex(); vec2 getIndex(Color c); - dim2 imageDim(const char *fileName); + dim2 imageDim(std::string fileName); } /** diff --git a/include/common.h b/include/common.h index 71335f2..6ba6f03 100644 --- a/include/common.h +++ b/include/common.h @@ -68,7 +68,7 @@ typedef struct { float z; } vec3; -typedef vec2 dim2; +typedef ivec2 dim2; /** * This structure contains two sets of coordinates for ray drawing. diff --git a/include/world.h b/include/world.h index 56f1577..c066865 100644 --- a/include/world.h +++ b/include/world.h @@ -129,6 +129,12 @@ public: */ Village(const char *meme, World *w); + + /** + * Destructor... + */ + + ~Village(void){} }; /** @@ -282,9 +288,7 @@ public: std::vector particles; - - - std::vector village; + std::vector village; /** * A vector of all light elements in this world. -- cgit v1.2.3