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 /htpstate.cpp | |
| parent | 306c130cc425e96d2088f68551c4bb77dad412d3 (diff) | |
| download | mazeoflife-af121493c84c116b06f2572846535293a827d089.tar.gz mazeoflife-af121493c84c116b06f2572846535293a827d089.tar.bz2 mazeoflife-af121493c84c116b06f2572846535293a827d089.zip | |
Embedded images into executable file
Diffstat (limited to 'htpstate.cpp')
| -rw-r--r-- | htpstate.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
| diff --git a/htpstate.cpp b/htpstate.cpp index ad830da..30d58a2 100644 --- a/htpstate.cpp +++ b/htpstate.cpp | |||
| @@ -2,9 +2,15 @@ | |||
| 2 | 2 | ||
| 3 | HowToPlayState::HowToPlayState() | 3 | HowToPlayState::HowToPlayState() |
| 4 | { | 4 | { |
| 5 | background1 = SDL_LoadBMP("htp1.bmp"); | 5 | SDL_RWops *rw = SDL_RWFromMem(&_binary_htp1_bmp_start, (int) &_binary_htp1_bmp_size); |
| 6 | background2 = SDL_LoadBMP("htp2.bmp"); | 6 | background1 = SDL_LoadBMP_RW(rw, 1); |
| 7 | pointer = SDL_LoadBMP("pointer.bmp"); | 7 | |
| 8 | rw = SDL_RWFromMem(&_binary_htp2_bmp_start, (int) &_binary_htp2_bmp_size); | ||
| 9 | background2 = SDL_LoadBMP_RW(rw, 1); | ||
| 10 | |||
| 11 | rw = SDL_RWFromMem(&_binary_pointer_bmp_start, (int) &_binary_pointer_bmp_size); | ||
| 12 | pointer = SDL_LoadBMP_RW(rw, 1); | ||
| 13 | |||
| 8 | secondPage = false; | 14 | secondPage = false; |
| 9 | selection = 0; | 15 | selection = 0; |
| 10 | 16 | ||
