Alex Lin b9c871328b Introduce Open Dynamics Engine examples
Added a 3 wheeled car example from the ODE demos.  I collapsed all of the separate classes
handling the world, objects, and drawings into a single class.  Each world is different
and just including that with the objects for these simple examples is easier.  Same goes
for the drawing.

refs #172
2016-02-02 11:19:25 -06:00

36 lines
659 B
C++

/*
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:
dsFunctions fn; // ** draw stuff function pointer structure
int window_width ;
int window_height ;
DrawStuff() ;
static void start() ;
static void step(int) ;
static void command(int) ;
int draw() ;
int shutdown() ;
static void add_object(DrawStuffObject * dso) ;
static std::vector<DrawStuffObject *> objects ;
} ;
#endif