stratgame

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/part.cc	Mon May 21 19:07:40 2012 +0300
     1.3 @@ -0,0 +1,25 @@
     1.4 +#include "opengl.h"
     1.5 +#include "part.h"
     1.6 +
     1.7 +Part *cur_part, *game_part, *menu_part;
     1.8 +
     1.9 +Part::~Part()
    1.10 +{
    1.11 +	current_time = 0;
    1.12 +}
    1.13 +
    1.14 +void Part::update(unsigned long msec)
    1.15 +{
    1.16 +	current_time = msec;
    1.17 +}
    1.18 +
    1.19 +void Part::reshape(int x, int y)
    1.20 +{
    1.21 +	glViewport(0, 0, x, y);
    1.22 +}
    1.23 +
    1.24 +void Part::key(int key, bool pressed) {}
    1.25 +void Part::mouse_button(int bn, bool pressed) {}
    1.26 +void Part::mouse_motion(int x, int y) {}
    1.27 +void Part::spaceball_motion(int x, int y, int z, int rx, int ry, int rz) {}
    1.28 +void Part::spaceball_button(int bn, bool pressed) {}