mirror of
https://github.com/nasa/trick.git
synced 2024-12-20 21:53:10 +00:00
68ffd04dff
Took the ODE bouncing ball tutorial sim and interfaced it within Trick. Created classes to handle interfacing with ODE and the DrawStuff graphics that comes with ODE. Created classes to contain the ball and the drawstuff graphics for the ball. refs #172
35 lines
578 B
C++
35 lines
578 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;
|
|
|
|
int window_width ;
|
|
int window_height ;
|
|
|
|
DrawStuff() ;
|
|
static void start() ;
|
|
static void step(int) ;
|
|
|
|
int draw() ;
|
|
int shutdown() ;
|
|
|
|
static void add_object(DrawStuffObject * dso) ;
|
|
static std::vector<DrawStuffObject *> objects ;
|
|
} ;
|
|
|
|
#endif
|