Main Page   Modules   Class Hierarchy   Compound List   Compound Members  

GAUGE3D::GModel Class Reference

Base class for 3D model plugins. More...

#include <gauge3d/graphics/model.h>

Inherits GAUGE3D::GObject.

Inherited by GAUGE3D::GBillboardSprite, GAUGE3D::GSphereModel, and GAUGE3D::GSuperModel.

List of all members.

Public Types

typedef GSmartPointer<AnimStatepAnimState
 Smart pointer to a AnimState.

typedef GSmartPointer<RenderInfopRenderInfo
 Smart pointer to a RenderInfo.


Public Methods

virtual ~GModel ()
virtual pAnimState CreateAnimState ()=0
 Generates an AnimState object associated with this model.

virtual pRenderInfo CreateRenderInfo ()=0
 Create a RenderInfo bound to this model. More...


Detailed Description

Base class for 3D model plugins.

Plugins that allow GAUGE to load various 3D model formats (like MD2 from Quake 2) are derived from this class.


Member Function Documentation

pRenderInfo GAUGE3D::GModel::CreateRenderInfo ( ) [pure virtual]
 

Create a RenderInfo bound to this model.

Remarks:
Obviously, this function uses dynamic memory and should not be called every frame. A renderer should call this once when the model is assigned to a sprite and then use the same RenderInfo object every time the sprite is drawn.

Reimplemented in GAUGE3D::GBillboardSprite, GAUGE3D::GSphereModel, and GAUGE3D::GSuperModel.


The documentation for this class was generated from the following file:
Generated at Tue Jan 30 17:07:34 2001 for gauge3d by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000