Public Member Functions | Public Attributes

glut::lod_model_t Struct Reference
[Glut 3D Model Library]

level-of-detail model. Contains multiple level-of-detail entries (models) More...

#include <glut-model.h>

Inheritance diagram for glut::lod_model_t:
Inheritance graph
[legend]
Collaboration diagram for glut::lod_model_t:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 lod_model_t (void) throw ()
 ~lod_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 nEntries
 number of level-of-detail entries
lod_entry_tentries
 array of level-of-detail entries
rect3d_t boundingBox
 bounding box

Detailed Description

level-of-detail model. Contains multiple level-of-detail entries (models)

Definition at line 191 of file glut-model.h.


Constructor & Destructor Documentation

glut::lod_model_t::lod_model_t ( void   )  throw () [inline]

Definition at line 194 of file glut-model.h.


Member Function Documentation

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.


The documentation for this struct was generated from the following files: