stratgame

view src/part.cc @ 2:369b51c9e4a8

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 23 May 2012 07:25:43 +0300
parents 86b53f76899f
children 8d95187cb3ee
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::update(unsigned long msec)
17 {
18 current_time = msec;
19 }
21 void Part::reshape(int x, int y)
22 {
23 glViewport(0, 0, x, y);
24 }
26 void Part::key(int key, bool pressed) {}
27 void Part::mouse_button(int bn, bool pressed) {}
28 void Part::mouse_motion(int x, int y) {}
29 void Part::spaceball_motion(int x, int y, int z, int rx, int ry, int rz) {}
30 void Part::spaceball_button(int bn, bool pressed) {}