summaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-02-15 15:28:42 (EST)
committer P. J. McDermott <pjm@nac.net>2013-02-15 15:28:42 (EST)
commitc978f746058497ddd9ddc9cf3e156c4453e487f1 (patch)
treeb7855dd65c735c54ad535f31d4fbd645ca29fc1b /src/image.c
parent80191b41352ad20493fb62e8f3683d69133d0d24 (diff)
downloadoverworld-rpg-c978f746058497ddd9ddc9cf3e156c4453e487f1.zip
overworld-rpg-c978f746058497ddd9ddc9cf3e156c4453e487f1.tar.gz
overworld-rpg-c978f746058497ddd9ddc9cf3e156c4453e487f1.tar.bz2
Add resource manager and move src/image.*.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/image.c b/src/image.c
deleted file mode 100644
index 557e1de..0000000
--- a/src/image.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <SDL.h>
-#include <SDL_image.h>
-#include "logging.h"
-#include "image.h"
-
-SDL_Surface *
-load_png(const char *path)
-{
- SDL_RWops *rwops;
- SDL_Surface *img;
-
- debug("Loading PNG image \"%s\"...", path);
-
- rwops = SDL_RWFromFile(path, "rb");
- img = IMG_LoadPNG_RW(rwops);
- if (!img) {
- err(1, "Failed to load image \"%s\" (%s)",
- path, IMG_GetError());
- }
-
- return img;
-}