Functions

Transform Model Wrapper
[3D Model Formats]

This model type is a thin wrapper layer on top of other layers. More...

Collaboration diagram for Transform Model Wrapper:

Functions

smart_ptr< Renderable > glut::createXformModel (const matrix4_t &xform,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.

Detailed Description

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.


Function Documentation

smart_ptr< Renderable > glut::createXformModel ( const matrix4_t xform,
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.