Rev 1 | Rev 3 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | tom | 1 | #include "sssnakesss.hpp" |
2 | |||
3 | SSSNAKESSS::SSSNAKESSS() |
||
4 | { |
||
2 | tom | 5 | running = false; |
1 | tom | 6 | } |
7 | |||
8 | SSSNAKESSS::~SSSNAKESSS() |
||
9 | { |
||
10 | |||
11 | } |
||
12 | |||
13 | bool SSSNAKESSS::init() |
||
14 | { |
||
15 | if (!initSDL()) |
||
16 | { |
||
17 | return false; |
||
18 | } |
||
19 | |||
20 | if (!initOpenGL()) |
||
21 | { |
||
22 | return false; |
||
23 | } |
||
24 | |||
25 | initData(); |
||
26 | |||
27 | return true; |
||
28 | } |
||
29 | |||
30 | bool SSSNAKESSS::initSDL() |
||
31 | { |
||
32 | return true; |
||
33 | } |
||
34 | |||
35 | bool SSSNAKESSS::initOpenGL() |
||
36 | { |
||
37 | return true; |
||
38 | } |
||
39 | |||
40 | void SSSNAKESSS::initData() |
||
41 | { |
||
42 | } |
||
43 | |||
44 | void SSSNAKESSS::run() |
||
45 | { |
||
2 | tom | 46 | running = true; |
47 | |||
48 | while (running) |
||
49 | { |
||
50 | checkEvents(); |
||
51 | update(); |
||
52 | draw(); |
||
53 | } |
||
1 | tom | 54 | } |
55 | |||
2 | tom | 56 | void SSSNAKESSS::checkEvents() |
57 | { |
||
58 | } |
||
59 | |||
60 | void SSSNAKESSS::update() |
||
61 | { |
||
62 | } |
||
63 | |||
64 | void SSSNAKESSS::draw() |
||
65 | { |
||
66 | } |
||
67 | |||
1 | tom | 68 | void SSSNAKESSS::end() |
69 | { |
||
70 | } |