diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-06-13 18:47:00 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-06-13 18:47:00 +0200 |
commit | c91de71d69265a0d619b25d0c04ae1adb0785f33 (patch) | |
tree | 83176a79b8ed2d83f962758972e5a37a69d8259d /texturesdl.cpp | |
parent | a6417af853180b5568c7f96c903057dd2c454204 (diff) |
Diffstat (limited to 'texturesdl.cpp')
-rwxr-xr-x | texturesdl.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/texturesdl.cpp b/texturesdl.cpp deleted file mode 100755 index 8e112ef..0000000 --- a/texturesdl.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include <iostream> -#include <stdexcept> -#include <SDL/SDL_image.h> -#include "texturesdl.h" - -TextureSDL::TextureSDL(const char* filename) { - SDL_Surface* image = IMG_Load(filename); - - width = image->w; - height = image->h; - byte_per_pixel = image->format->BytesPerPixel; - data = (unsigned char*)image->pixels; - - build(); - - SDL_FreeSurface(image); -} |