dwscr/ss/LogoBox.h
josh c2d694aa73 added WITHOUT_ODE make and compile flag
git-svn-id: svn://anubis/dwscr/trunk@87 5bef9df8-b654-44bb-925b-0ff18baa8f8c
2008-09-22 17:47:10 +00:00

40 lines
678 B
C++

/* Author: Josh Holtrop
* DornerWorks screensaver
* The LogoBox class
*/
#ifndef LOGOBOX_H
#define LOGOBOX_H
#include <GL/gl.h>
#ifndef WITHOUT_ODE
#include <ode/ode.h>
#endif
class LogoBox
{
public:
#ifndef WITHOUT_ODE
LogoBox(dWorldID world = 0, dSpaceID space = 0);
#else
LogoBox();
#endif
~LogoBox();
void draw();
const float * const getAABB() const;
float getWidth() const;
float getHeight() const;
float getDepth() const;
#ifndef WITHOUT_ODE
dBodyID getBody() { return m_body; }
dGeomID getGeom() { return m_geom; }
protected:
dBodyID m_body;
dGeomID m_geom;
#endif
};
#endif