model object. More...
#include <glut-model.h>
Public Member Functions | |
model_t (void) throw () | |
~model_t (void) throw () | |
void | clear (void) throw () |
void | render (IN const render_context_t &rc, IN RenderQueue *rq) |
this method is called to actually draw the object. | |
rect3d_t | getBoundingBox (void) const throw () |
here the object must provide a bounding box. | |
virtual bool | isAnimateable (void) const throw () |
does this object support animations? Default answer is false. | |
virtual void | getAnimationState (OUT std::string &state) |
the object must provide current animation state. | |
virtual bool | setAnimationState (IN const char *state) |
the object should update its animation state. | |
virtual void | getAnimationVerbs (OUT VecString &verbs) |
the object should return the full list of animation verbs it supports. | |
virtual bool | setAnimation (IN const char *verb) |
please update animations based on requested verb. | |
Public Attributes | |
int | nVertices |
number of vertices in model | |
point3d_t * | vertices |
array of vertices | |
int | nPolygons |
number of polygons in model | |
polygon_t * | polygons |
array of polygons | |
rect3d_t | boundingBox |
bounding box |
model object.
This contains all of the vertices in a single flat list, and then a list of polygons that use the vertices.
Definition at line 142 of file glut-model.h.
glut::model_t::model_t | ( | void | ) | throw () [inline] |
Definition at line 145 of file glut-model.h.
bool glut::Renderable::isAnimateable | ( | void | ) | const throw () [virtual, inherited] |
does this object support animations? Default answer is false.
(random aside: did you know "animateable" is not a word?)
Definition at line 168 of file renderable.cpp.
void glut::Renderable::getAnimationState | ( | OUT std::string & | state | ) | [virtual, inherited] |
the object must provide current animation state.
Default implementation returns empty state string.
Definition at line 181 of file renderable.cpp.
bool glut::Renderable::setAnimationState | ( | IN const char * | state | ) | [virtual, inherited] |
the object should update its animation state.
Returns false if the object doesn't understand the provided state. Default implementation returns false.
Definition at line 192 of file renderable.cpp.
void glut::Renderable::getAnimationVerbs | ( | OUT VecString & | verbs | ) | [virtual, inherited] |
the object should return the full list of animation verbs it supports.
The default implementation returns an empty list.
Definition at line 205 of file renderable.cpp.
bool glut::Renderable::setAnimation | ( | IN const char * | verb | ) | [virtual, inherited] |
please update animations based on requested verb.
Returns false if verb is not supported. Default implementation returns false.
Definition at line 216 of file renderable.cpp.