summaryrefslogtreecommitdiff
path: root/texturesdl.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-06-13 18:47:00 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-06-13 18:47:00 +0200
commitc91de71d69265a0d619b25d0c04ae1adb0785f33 (patch)
tree83176a79b8ed2d83f962758972e5a37a69d8259d /texturesdl.cpp
parenta6417af853180b5568c7f96c903057dd2c454204 (diff)
Using wriggle.HEADmaster
Diffstat (limited to 'texturesdl.cpp')
-rwxr-xr-xtexturesdl.cpp17
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);
-}