diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-03-04 08:45:53 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-03-04 08:45:53 -0500 |
commit | 5fadac5d0f37f574ca160107d832d11b421ad559 (patch) | |
tree | ff9667adf7c3b8d882083a99b7176260afd25349 /src/Texture.cpp | |
parent | fe5ea7fe415857f49d6630f2b0f50e1246c38eee (diff) |
entity following
Diffstat (limited to 'src/Texture.cpp')
-rw-r--r-- | src/Texture.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Texture.cpp b/src/Texture.cpp index 731a1d6..ed93af9 100644 --- a/src/Texture.cpp +++ b/src/Texture.cpp @@ -7,11 +7,11 @@ * A structure for keeping track of loaded textures. */ -struct texture_t { +typedef struct { std::string name; /**< The file path of the texture. */ GLuint tex; /**< The GLuint for the loaded texture. */ dim2 dim; /**< The dimensions of the texture. */ -}; +} texture_t; struct index_t { Color color; @@ -26,7 +26,7 @@ struct index_t { * this array and reuse GLuint's to save memory. */ -static std::vector<struct texture_t> LoadedTexture; +static std::vector<texture_t> LoadedTexture; namespace Texture{ Color pixels[8][4]; @@ -81,7 +81,7 @@ namespace Texture{ ); // add texture to LoadedTexture - LoadedTexture.push_back((struct texture_t){fileName,object,{image->w,image->h}}); + LoadedTexture.push_back(texture_t{fileName,object,{image->w,image->h}}); // free the SDL_Surface SDL_FreeSurface(image); |