stratgame

annotate 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
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@2 11 bool Part::init()
nuclear@2 12 {
nuclear@2 13 return true;
nuclear@2 14 }
nuclear@2 15
nuclear@3 16 void Part::start()
nuclear@3 17 {
nuclear@3 18 if(cur_part) {
nuclear@3 19 cur_part->stop();
nuclear@3 20 }
nuclear@3 21 cur_part = this;
nuclear@3 22 }
nuclear@3 23
nuclear@3 24 void Part::stop() {}
nuclear@3 25
nuclear@0 26 void Part::update(unsigned long msec)
nuclear@0 27 {
nuclear@0 28 current_time = msec;
nuclear@0 29 }
nuclear@0 30
nuclear@0 31 void Part::reshape(int x, int y)
nuclear@0 32 {
nuclear@0 33 glViewport(0, 0, x, y);
nuclear@0 34 }
nuclear@0 35
nuclear@0 36 void Part::key(int key, bool pressed) {}
nuclear@0 37 void Part::mouse_button(int bn, bool pressed) {}
nuclear@0 38 void Part::mouse_motion(int x, int y) {}
nuclear@0 39 void Part::spaceball_motion(int x, int y, int z, int rx, int ry, int rz) {}
nuclear@0 40 void Part::spaceball_button(int bn, bool pressed) {}