stratgame

view src/part.cc @ 3:8d95187cb3ee

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 23 May 2012 17:10:46 +0300
parents 369b51c9e4a8
children
line source
1 #include "opengl.h"
2 #include "part.h"
4 Part *cur_part, *game_part, *menu_part;
6 Part::~Part()
7 {
8 current_time = 0;
9 }
11 bool Part::init()
12 {
13 return true;
14 }
16 void Part::start()
17 {
18 if(cur_part) {
19 cur_part->stop();
20 }
21 cur_part = this;
22 }
24 void Part::stop() {}
26 void Part::update(unsigned long msec)
27 {
28 current_time = msec;
29 }
31 void Part::reshape(int x, int y)
32 {
33 glViewport(0, 0, x, y);
34 }
36 void Part::key(int key, bool pressed) {}
37 void Part::mouse_button(int bn, bool pressed) {}
38 void Part::mouse_motion(int x, int y) {}
39 void Part::spaceball_motion(int x, int y, int z, int rx, int ry, int rz) {}
40 void Part::spaceball_button(int bn, bool pressed) {}