This model type is a thin wrapper layer on top of other layers. More...
Functions | |
smart_ptr< Renderable > | glut::createXformModel (IN const matrix4_t &xform, IN smart_ptr< Renderable > &model) |
Given a 4x4 transform and a base model, returns a wrapper model that applies the given transformation to the base model. |
This model type is a thin wrapper layer on top of other layers.
It adds some simple transforms (scaling and rotation) on top of other formats.
For instance, if you find another MD3 or OBJ model that you like but need to transform, you can take the other model and wrap it with this class.
The Aesop game engine commonly uses this format to scale and rotate Quake MD3 models.
smart_ptr< Renderable > glut::createXformModel | ( | IN const matrix4_t & | xform, | |
IN smart_ptr< Renderable > & | model | |||
) |
Given a 4x4 transform and a base model, returns a wrapper model that applies the given transformation to the base model.