stratgame

view src/part.cc @ 0:86b53f76899f

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 21 May 2012 19:07:40 +0300
parents
children 369b51c9e4a8
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 void Part::update(unsigned long msec)
12 {
13 current_time = msec;
14 }
16 void Part::reshape(int x, int y)
17 {
18 glViewport(0, 0, x, y);
19 }
21 void Part::key(int key, bool pressed) {}
22 void Part::mouse_button(int bn, bool pressed) {}
23 void Part::mouse_motion(int x, int y) {}
24 void Part::spaceball_motion(int x, int y, int z, int rx, int ry, int rz) {}
25 void Part::spaceball_button(int bn, bool pressed) {}