Rev 3 | Rev 6 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4 | tom | 1 | #ifndef SSSNAKESSS_HPP |
2 | #define SSSNAKESSS_HPP |
||
1 | tom | 3 | |
3 | tom | 4 | struct SDL_Surface; |
5 | |||
1 | tom | 6 | class SSSNAKESSS |
7 | { |
||
8 | public: |
||
9 | SSSNAKESSS(); |
||
10 | ~SSSNAKESSS(); |
||
11 | |||
12 | bool init(); |
||
13 | bool initSDL(); |
||
14 | bool initOpenGL(); |
||
15 | void initData(); |
||
16 | |||
17 | void run(); |
||
2 | tom | 18 | void checkEvents(); |
19 | void update(); |
||
20 | void draw(); |
||
1 | tom | 21 | |
22 | void end(); |
||
23 | |||
24 | private: |
||
2 | tom | 25 | bool running; |
3 | tom | 26 | |
27 | SDL_Surface *screen; |
||
1 | tom | 28 | }; |
29 | |||
4 | tom | 30 | #endif // SSSNAKESSS_HPP |