summaryrefslogtreecommitdiff
path: root/texturesdl.cpp
diff options
context:
space:
mode:
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);
-}