summary refs log tree commit diff stats
path: root/titlestate.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2009-06-20 13:56:20 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2009-06-20 13:56:20 -0400
commitaf121493c84c116b06f2572846535293a827d089 (patch)
treedc04a8e44a933c42dfec19303051989f8132d15a /titlestate.cpp
parent306c130cc425e96d2088f68551c4bb77dad412d3 (diff)
downloadmazeoflife-af121493c84c116b06f2572846535293a827d089.tar.gz
mazeoflife-af121493c84c116b06f2572846535293a827d089.tar.bz2
mazeoflife-af121493c84c116b06f2572846535293a827d089.zip
Embedded images into executable file
Diffstat (limited to 'titlestate.cpp')
-rw-r--r--titlestate.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/titlestate.cpp b/titlestate.cpp index 425e4ca..c011480 100644 --- a/titlestate.cpp +++ b/titlestate.cpp
@@ -2,8 +2,12 @@
2 2
3TitleState::TitleState() 3TitleState::TitleState()
4{ 4{
5 background = SDL_LoadBMP("title.bmp"); 5 SDL_RWops *rw = SDL_RWFromMem(&_binary_title_bmp_start, (int) &_binary_title_bmp_size);
6 pointer = SDL_LoadBMP("pointer.bmp"); 6 background = SDL_LoadBMP_RW(rw, 1);
7
8 rw = SDL_RWFromMem(&_binary_pointer_bmp_start, (int) &_binary_pointer_bmp_size);
9 pointer = SDL_LoadBMP_RW(rw, 1);
10
7 selection = 0; 11 selection = 0;
8 12
9 SDL_WM_SetCaption("Maze Of Life", NULL); 13 SDL_WM_SetCaption("Maze Of Life", NULL);