diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-05-21 19:24:51 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-05-21 19:24:51 +0200 |
commit | 267bebfc227c94f543a39e2aa75fb101bc06932e (patch) | |
tree | 40ad8057634ba80aa19c61f57884982fd59f6b56 /texturesdl.cpp | |
parent | 88b1e9e505dad78fd2c3ff927495d322b11491ca (diff) |
Moved engine-sources to seperate subdirectory.
Diffstat (limited to 'texturesdl.cpp')
-rw-r--r-- | texturesdl.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/texturesdl.cpp b/texturesdl.cpp deleted file mode 100644 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); -} |