stratgame

annotate 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
rev   line source
nuclear@0 1 #include "opengl.h"
nuclear@0 2 #include "part.h"
nuclear@0 3
nuclear@0 4 Part *cur_part, *game_part, *menu_part;
nuclear@0 5
nuclear@0 6 Part::~Part()
nuclear@0 7 {
nuclear@0 8 current_time = 0;
nuclear@0 9 }
nuclear@0 10
nuclear@0 11 void Part::update(unsigned long msec)
nuclear@0 12 {
nuclear@0 13 current_time = msec;
nuclear@0 14 }
nuclear@0 15
nuclear@0 16 void Part::reshape(int x, int y)
nuclear@0 17 {
nuclear@0 18 glViewport(0, 0, x, y);
nuclear@0 19 }
nuclear@0 20
nuclear@0 21 void Part::key(int key, bool pressed) {}
nuclear@0 22 void Part::mouse_button(int bn, bool pressed) {}
nuclear@0 23 void Part::mouse_motion(int x, int y) {}
nuclear@0 24 void Part::spaceball_motion(int x, int y, int z, int rx, int ry, int rz) {}
nuclear@0 25 void Part::spaceball_button(int bn, bool pressed) {}