Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

WPCG::WP_Model_MD2 Class Reference

#include <WP_Model.h>

Inheritance diagram for WPCG::WP_Model_MD2:

WPCG::WP_AnimatedModel WPCG::WP_Model List of all members.

Public Methods

 WP_Model_MD2 (const string &name)
 WP_Model_MD2 (const WP_Model_MD2 &md2model)
 ~WP_Model_MD2 ()
WP_Model_MD2 & operator= (const WP_Model_MD2 &md2model)
void drawOpenGL (const WP_Matrix3D &matrix, WP_Object *object)
bool initModel ()

Detailed Description

this class is used for the creation of models in ID's MD2 file format, as used in the computer game Quake2


Constructor & Destructor Documentation

WPCG::WP_Model_MD2::WP_Model_MD2 const string &    name
 

Parameters:
name  the name of the file containing the .md2 model

WPCG::WP_Model_MD2::WP_Model_MD2 const WP_Model_MD2 &    md2model
 

WPCG::WP_Model_MD2::~WP_Model_MD2   [inline]
 


Member Function Documentation

void WPCG::WP_Model_MD2::drawOpenGL const WP_Matrix3D   matrix,
WP_Object   object
[virtual]
 

this function draws the model according to its world matrix into the 3D scene

Parameters:
matrix  a WP_Matrix3D object representing the world matrix of the model indicating where and how the model is rendered into the scene

Implements WPCG::WP_AnimatedModel.

bool WPCG::WP_Model_MD2::initModel   [virtual]
 

this function is used for reading the model file and initializing the model by filling the variables of the base class with the appropriate read values. This function is automatically called by the base class WP_Model by a call to its init function

Implements WPCG::WP_AnimatedModel.

WP_Model_MD2 & WPCG::WP_Model_MD2::operator= const WP_Model_MD2 &    md2model
 


The documentation for this class was generated from the following files:
Generated on Tue Jan 28 20:26:41 2003 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002