[AE Engine logo] Public API Reference
Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

aeMD2Object Class Reference

This class represents a single MD2 model. More...

#include <md2object.h>

Inheritance diagram for aeMD2Object:

aeModel aeObject aeBase List of all members.

Public Member Functions

 aeMD2Object (char *mdlstr, aeVector3_vector *vertList, aeTexCoord2_vector *stList, mesh_t *triIdx, unsigned int numframes, unsigned int numverts, unsigned int numtris, unsigned int numst, unsigned int framesize)
void draw (aeEngineflags *)
 Draw the model.

int animate (aeEngineflags *)
 Animate the model given a start frame, end frame, and interpolation percentage.

int renderFrame (aeEngineflags *)
 Render a single frame of the model.

void setAnimation (int startframe, int endframe, float percent)
 Set model animation given start frame, end frame, and interpolation percentage.

void setFrame (int keyframe)
 Set model frame to render.

modelState_t getState ()
 Retrieve animation state for the model.

void setState (modelState_t state)
 Set the animation state for the model.


Private Attributes

int frameSize
int currentFrame
int nextFrame
int startFrame
int endFrame
int keyFrame
float interpol
float percent
mesh_ttriIndex

Detailed Description

This class represents a single MD2 model.

Normally you don't deal with this class directly, but with the aeModel class.

See also:
aeModel

Definition at line 41 of file md2object.h.


Member Function Documentation

int aeMD2Object::animate aeEngineflags   [virtual]
 

Animate the model given a start frame, end frame, and interpolation percentage.

Parameters:
startFrame Starting frame.
endFrame Ending frame.
percent Interpolation percentage.

Implements aeModel.

void aeMD2Object::draw aeEngineflags   [virtual]
 

Draw the model.

This is called by aeEngine::Render(). You shouldn't need to call this yourself.

Implements aeModel.

modelState_t aeMD2Object::getState   [virtual]
 

Retrieve animation state for the model.

Returns:
The animation state.

Implements aeModel.

int aeMD2Object::renderFrame aeEngineflags   [virtual]
 

Render a single frame of the model.

Parameters:
keyFrame The frame number.

Implements aeModel.

void aeMD2Object::setAnimation int    startframe,
int    endframe,
float    percent
[virtual]
 

Set model animation given start frame, end frame, and interpolation percentage.

Parameters:
startframe Start frame for animation.
endframe End frame for animation
interpol Interpolation percentage.

Implements aeModel.

void aeMD2Object::setFrame int    keyframe [virtual]
 

Set model frame to render.

This will render a single still frame of a model.

Parameters:
keyframe Frame of model to render.

Implements aeModel.

void aeMD2Object::setState modelState_t    state [virtual]
 

Set the animation state for the model.

Parameters:
state Animation state.

Implements aeModel.


The documentation for this class was generated from the following file:
AE Engine Public API Reference
Generated on Wed Apr 9 09:43:40 2003 by Doxygen.