#include <WP_Model.h>
Inheritance diagram for WPCG::WP_AnimatedModel:
Public Methods | |
WP_AnimatedModel (const string &name) | |
WP_AnimatedModel (const WP_AnimatedModel &amodel) | |
virtual | ~WP_AnimatedModel () |
WP_AnimatedModel & | operator= (const WP_AnimatedModel &amodel) |
virtual void | drawOpenGL (const WP_Matrix3D &matrix, WP_Object *object)=0 |
virtual bool | initModel ()=0 |
OPCODE_Model * | getCollisionModel (const WP_Object *object) |
WP_Vertex * | getVertex (const WP_Object *object, unsigned int index) |
unsigned short | getCategoryStartFrame (const string &category) |
unsigned short | getCategoryNumberFrames (const string &category) |
string | getCategoryName (unsigned int index) const |
unsigned int | getNumberCategories () const |
Protected Methods | |
bool | finalizeAll () |
Protected Attributes | |
WP_Frame * | frames |
unsigned int | numberFrames |
map< string, WP_FrameCategory * > | categories |
|
|
|
|
|
|
|
this function draws the model according to its world matrix into the 3D scene
Implements WPCG::WP_Model. Implemented in WPCG::WP_Model_MD2. |
|
this function finalizes all after the model was read and everything was initialized. It for instance builds the collision mesh Implements WPCG::WP_Model. |
|
|
|
|
|
|
|
Implements WPCG::WP_Model. |
|
|
|
Implements WPCG::WP_Model. |
|
this virtual function should be overriden by child objects. In this function the model must be read and the model's internals must be filled (like for example the meshes, the material etc). Every 3d file format stores this information in a different way there this function can be used to substract the necessary data from it. Implements WPCG::WP_Model. Implemented in WPCG::WP_Model_MD2. |
|
|
|
|
|
|
|
|