summary refs log tree commit diff stats
path: root/resources.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2009-10-17 13:46:41 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2009-10-17 13:46:41 -0400
commita157cd82a86390f1fcb1a2086f86af5187e85a69 (patch)
treea6ffa353c2e8db14a320d02f7ebdc3ed39176f84 /resources.h
parentf2ab9f3f0d5fe1ad19881b7dba79b31e3673748a (diff)
downloadmazeoflife-a157cd82a86390f1fcb1a2086f86af5187e85a69.tar.gz
mazeoflife-a157cd82a86390f1fcb1a2086f86af5187e85a69.tar.bz2
mazeoflife-a157cd82a86390f1fcb1a2086f86af5187e85a69.zip
Moved resources into subdirectory
Because Highscore List rendering requires a font and the font has to be included with the executable to work, it will be loaded into the executable like
the images are. To make sure that all resources are included, regardless of type, a folder was made for them.

Refs #104
Diffstat (limited to 'resources.h')
-rw-r--r--resources.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/resources.h b/resources.h index dd18ffe..fc9229a 100644 --- a/resources.h +++ b/resources.h
@@ -2,18 +2,19 @@
2#define RESOURCES_H 2#define RESOURCES_H
3 3
4#ifdef WINDOWS 4#ifdef WINDOWS
5#define LOADIMAGE(var,title) SDL_RWops * title ## _rw = SDL_RWFromMem(&binary_ ## title ## _bmp_start, (int) &binary_ ## title ## _bmp_size); var = SDL_LoadBMP_RW( title ## _rw, 1); 5#define RESNAME(title,part) binary_resources_ ## title ## _ ## part
6#define DEFIMAGE(title) extern int* binary_ ## title ## _bmp_start; extern int* binary_ ## title ## _bmp_size;
7#else 6#else
8#define LOADIMAGE(var,title) SDL_RWops * title ## _rw = SDL_RWFromMem(&_binary_ ## title ## _bmp_start, (int) &_binary_ ## title ## _bmp_size); var = SDL_LoadBMP_RW( title ## _rw, 1); 7#define RESNAME(title,part) _binary_resources_ ## title ## _ ## part
9#define DEFIMAGE(title) extern int* _binary_ ## title ## _bmp_start; extern int* _binary_ ## title ## _bmp_size;
10#endif 8#endif
11 9
12DEFIMAGE(icon) 10#define DEFRES(title) extern int* RESNAME(title,start); extern int* RESNAME(title,size);
13DEFIMAGE(title) 11#define LOADIMAGE(var,title) SDL_RWops * title ## _rw = SDL_RWFromMem(&RESNAME(title ## _bmp,start), (int) &RESNAME(title ## _bmp,size)); var = SDL_LoadBMP_RW( title ## _rw, 1);
14DEFIMAGE(pointer) 12
15DEFIMAGE(htp1) 13DEFRES(icon_bmp)
16DEFIMAGE(htp2) 14DEFRES(title_bmp)
17DEFIMAGE(chl) 15DEFRES(pointer_bmp)
16DEFRES(htp1_bmp)
17DEFRES(htp2_bmp)
18DEFRES(chl_bmp)
18 19
19#endif 20#endif