Main Page   Modules   Class Hierarchy   Compound List   Compound Members  

GAUGE3D::GSphereModel Class Reference

A sphere model. More...

#include <gauge3d/graphics/spheremodel.h>

Inherits GAUGE3D::GModel.

List of all members.

Public Types

typedef GSmartPointer<SphereModelAnimStatepSphereModelAnimState

Public Methods

 GSphereModel ()
virtual ~GSphereModel ()
virtual pAnimState CreateAnimState ()
 Generates an AnimState object associated with this model.

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


Friends

class  SphereModelAnimState


Detailed Description

A sphere model.

GSphereModel is a derivative of GModel. You can use it to display spheres. The sphere is of the geodesic type, which makes it look pretty.

Note that you cannot set the radius of the sphere; it is always 1.0. You can, however, give GSprite a scale factor, which will cause the sphere to be drawn with a radius equal to that factor.


Member Function Documentation

pRenderInfo GAUGE3D::GSphereModel::CreateRenderInfo ( ) [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 from GAUGE3D::GModel.


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