diff options
| author | Starla Insigna <starla4444@gmail.com> | 2013-08-27 11:39:37 -0400 |
|---|---|---|
| committer | Starla Insigna <starla4444@gmail.com> | 2013-08-27 11:39:37 -0400 |
| commit | ffd335aca284c286030e2b26f1a02a0441748f46 (patch) | |
| tree | bcc1c241621fe159ae7ef178122fb41c5f23eb00 /titlestate.h | |
| parent | d47da18958b5214def5127e201f60668c566d9bb (diff) | |
| download | mazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.tar.gz mazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.tar.bz2 mazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.zip | |
Started rewriting game from scratch with SDL2
Only the title screen is currently implemented
Diffstat (limited to 'titlestate.h')
| -rw-r--r-- | titlestate.h | 14 |
1 files changed, 5 insertions, 9 deletions
| diff --git a/titlestate.h b/titlestate.h index 6519ecf..11d16d7 100644 --- a/titlestate.h +++ b/titlestate.h | |||
| @@ -1,16 +1,12 @@ | |||
| 1 | #include <SDL.h> | ||
| 2 | #include "state.h" | ||
| 3 | |||
| 1 | #ifndef TITLESTATE_H | 4 | #ifndef TITLESTATE_H |
| 2 | #define TITLESTATE_H | 5 | #define TITLESTATE_H |
| 3 | 6 | ||
| 4 | class TitleState : public State { | 7 | class TitleState : public State { |
| 5 | public: | 8 | public: |
| 6 | TitleState(); | 9 | State* operator() (SDL_Renderer* renderer); |
| 7 | void input(SDL_keysym key); | ||
| 8 | void render(SDL_Surface* screen); | ||
| 9 | |||
| 10 | private: | ||
| 11 | SDL_Surface* background; | ||
| 12 | SDL_Surface* pointer; | ||
| 13 | int selection; | ||
| 14 | }; | 10 | }; |
| 15 | 11 | ||
| 16 | #endif | 12 | #endif \ No newline at end of file |
