diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-06-20 13:56:20 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-06-20 13:56:20 -0400 |
| commit | af121493c84c116b06f2572846535293a827d089 (patch) | |
| tree | dc04a8e44a933c42dfec19303051989f8132d15a /titlestate.cpp | |
| parent | 306c130cc425e96d2088f68551c4bb77dad412d3 (diff) | |
| download | mazeoflife-af121493c84c116b06f2572846535293a827d089.tar.gz mazeoflife-af121493c84c116b06f2572846535293a827d089.tar.bz2 mazeoflife-af121493c84c116b06f2572846535293a827d089.zip | |
Embedded images into executable file
Diffstat (limited to 'titlestate.cpp')
| -rw-r--r-- | titlestate.cpp | 8 |
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 | ||
| 3 | TitleState::TitleState() | 3 | TitleState::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); |
