diff options
Diffstat (limited to 'src/common.cpp')
-rw-r--r-- | src/common.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/common.cpp b/src/common.cpp index 124d999..373c08c 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -1,20 +1,5 @@ #include <common.h> -/*SDL_Surface* loadTexture(char* filename){ - SDL_Surface *optimizedSurface = NULL; - SDL_Surface *texture = IMG_Load(filename); - if(texture == NULL){ - std::cout << "Unable to load an image properly from " << filename << "; Error: " << IMG_GetError() << std::endl; - }else{ - optimizedSurface = SDL_ConvertSurface(texture, renderSurface->format, NULL); - if(optimizedSurface == NULL){ - std::cout << "Unable to optimize image properly from " << filename << "; Error: " << IMG_GetError() << std::endl; - } - SDL_FreeSurface(texture); - } - return optimizedSurface; -}*/ - GLuint loadTexture(const char *fileName){ SDL_Surface *image = IMG_Load(fileName); @@ -38,4 +23,4 @@ GLuint loadTexture(const char *fileName){ SDL_FreeSurface(image); return object; -}
\ No newline at end of file +} |