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

aeModel Class Reference

A 3D model object. More...

#include <model.h>

Inheritance diagram for aeModel:

aeObject aeBase aeMD2Object List of all members.

Public Member Functions

virtual void draw (aeEngineflags *)=0
 Draw this model.

virtual int animate (aeEngineflags *)=0
 Animate the model.

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

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

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

virtual modelState_t getState ()=0
 Get the model's state.

virtual void setState (modelState_t)=0
 Set the state for this model.

virtual bool isAnimating ()
 Used to check if this model is currently animating.


Protected Attributes

unsigned int numFrames
unsigned int numVertices
unsigned int numTriangles
unsigned int numTexCoords
modelState_t modelState
bool isAnimating

Detailed Description

A 3D model object.

Definition at line 37 of file model.h.


Member Function Documentation

virtual int aeModel::animate aeEngineflags   [pure virtual]
 

Animate the model.

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

Parameters:
int Frame to start the animation.
int Frame to end the animation.
float Interpolation percentage.

Implemented in aeMD2Object.

virtual void aeModel::draw aeEngineflags   [pure virtual]
 

Draw this model.

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

Implements aeObject.

Implemented in aeMD2Object.

virtual modelState_t aeModel::getState   [pure virtual]
 

Get the model's state.

Returns:
The model's state.

Implemented in aeMD2Object.

virtual bool aeModel::isAnimating   [virtual]
 

Used to check if this model is currently animating.

Returns:
True if the model is animating, false if not.

virtual int aeModel::renderFrame aeEngineflags   [pure virtual]
 

Render a single frame of the model.

Implemented in aeMD2Object.

virtual void aeModel::setAnimation int    startframe,
int    endframe,
float    percent
[pure 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.

Implemented in aeMD2Object.

virtual void aeModel::setFrame int    keyframe [pure virtual]
 

Set model frame to render.

This will render a single still frame of a model.

Parameters:
keyframe Frame of model to render.

Implemented in aeMD2Object.

virtual void aeModel::setState modelState_t    [pure virtual]
 

Set the state for this model.

Parameters:
modelState_t The model's state.

Implemented in aeMD2Object.


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