From 8e0a72184085aa6e3e741ad5d79f5db2e63d63a6 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 2 Oct 2010 03:43:27 +0200 Subject: Replaced TextureSDL with TextureSTBI. --- texturesdl.cpp | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 texturesdl.cpp (limited to 'texturesdl.cpp') diff --git a/texturesdl.cpp b/texturesdl.cpp deleted file mode 100644 index 94e1e2d..0000000 --- a/texturesdl.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include -#include -#include -#include "texturesdl.h" - -TextureSDL::TextureSDL(const char* filename) { - SDL_Surface* image = IMG_Load(filename); - - unsigned int format; - if(image->format->BytesPerPixel == 4) { - format = image->format->Bshift ? GL_RGBA : GL_BGRA; - } else { - format = image->format->Bshift ? GL_RGB : GL_BGR; - } - - build(image->pixels, format, image->w, image->h); - - SDL_FreeSurface(image); -} -- cgit v1.2.3