From 6f565ce1110d7f53defe3895255a456fd8adcd4f Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 13 Jun 2010 16:36:03 +0200 Subject: Moved more stuff. --- engine/texturesdl.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 engine/texturesdl.cpp (limited to 'engine/texturesdl.cpp') diff --git a/engine/texturesdl.cpp b/engine/texturesdl.cpp deleted file mode 100644 index bab760b..0000000 --- a/engine/texturesdl.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include -#include -#include -#include "texturesdl.h" - -TextureSDL::TextureSDL(const char* filename) { - SDL_Surface* image = IMG_Load(filename); - - width = image->w; - height = image->h; - - if(image->format->BytesPerPixel == 4) { - format = image->format->Bshift ? GL_RGBA : GL_BGRA; - } else { - format = image->format->Bshift ? GL_RGB : GL_BGR; - } - - data = (unsigned char*)image->pixels; - - build(); - - SDL_FreeSurface(image); -} -- cgit v1.2.3