diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Texture.h | 4 | ||||
-rw-r--r-- | include/common.h | 2 | ||||
-rw-r--r-- | include/world.h | 10 |
3 files changed, 10 insertions, 6 deletions
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 *> particles; - - - std::vector<Village * > village; + std::vector<Village *> village; /** * A vector of all light elements in this world. |