Main Page   Modules   Class Hierarchy   Compound List   Compound Members  

GAUGE3D::GBillboardSprite Class Reference

A flat textured rectangle which always faces the camera. More...

#include <gauge3d/graphics/billboardsprite.h>

Inherits GAUGE3D::GModel.

List of all members.

Public Types

typedef GSmartPointer<BillboardAnimStatepBillboardAnimState
 Smart pointer to a BillboardAnimState.


Public Methods

 GBillboardSprite (GCoordinate width,GCoordinate height)
 Construct a billboard sprite of the given dimentions.

 ~GBillboardSprite ()
 Destructor.

void SetDimentions (GCoordinate width,GCoordinate height)
 Set the dimensions of the rectangle.

void GetDimentions (GCoordinate *width,GCoordinate *height)
 Get the dimensions of the rectangle.

void TexCoords (GVector upperLeft,GVector lowerRight)
 Manually set texture coordinates. More...

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

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


Friends

class  BillboardRenderInfo


Detailed Description

A flat textured rectangle which always faces the camera.


Member Function Documentation

void GAUGE3D::GBillboardSprite::TexCoords ( GVector upperLeft,
GVector lowerRight )
 

Manually set texture coordinates.

Parameters:
upperLeft   The texture coordinate corresponding to the upper left corner of the sprite.
lowerRight   The texture coordinate corresponding to the lower right corner of the sprite.

pRenderInfo GAUGE3D::GBillboardSprite::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:33 2001 for gauge3d by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000