2016-01-29 15:15:00 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
PURPOSE:
|
|
|
|
(Create the ODE world)
|
|
|
|
LIBRARY DEPENDENCY:
|
|
|
|
((DrawStuff.cpp))
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DRAWSTUFF_HH
|
|
|
|
#define DRAWSTUFF_HH
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <drawstuff/drawstuff.h>
|
|
|
|
#include "DrawStuffObject.hh"
|
|
|
|
|
|
|
|
class DrawStuff {
|
|
|
|
public:
|
2016-02-02 17:19:25 +00:00
|
|
|
dsFunctions fn; // ** draw stuff function pointer structure
|
2016-01-29 15:15:00 +00:00
|
|
|
|
|
|
|
int window_width ;
|
|
|
|
int window_height ;
|
|
|
|
|
|
|
|
DrawStuff() ;
|
|
|
|
static void start() ;
|
|
|
|
static void step(int) ;
|
2016-02-02 17:19:25 +00:00
|
|
|
static void command(int) ;
|
2016-01-29 15:15:00 +00:00
|
|
|
|
|
|
|
int draw() ;
|
|
|
|
int shutdown() ;
|
|
|
|
|
|
|
|
static void add_object(DrawStuffObject * dso) ;
|
|
|
|
static std::vector<DrawStuffObject *> objects ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
#endif
|