40 lines
678 B
C++
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
|