Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

CBillboarder Class Reference

List of all members.

Detailed Description

Billboard renderer.

Renders billboards (aka sprites, or screen-aligned textured quads). The only methods you should be interested in are beginBillboards(), endBillboards() and all the put???Bill(). The rest is handled by the engine.

All the put???Bill() methods should be called between beginBillboards() and endBillboards().


Public Methods

void beginBillboards ()
 Begins billboards.

void putWorldBill (const CResourceId &tex, D3DCOLOR color, const D3DXVECTOR3 &pos, float width, float height)
 Puts world space billboard.

void putEntityBill (const CResourceId &tex, D3DCOLOR color, const CEntity &entity, float width, float height)
 Puts billboard above given entity.

void putScreenBill (const CResourceId &tex, D3DCOLOR color, float x1, float y1, float x2, float y2)
 Puts screen space billboard.

void endBillboards ()
 Ends billboards.


Member Function Documentation

void CBillboarder::putEntityBill const CResourceId   tex,
D3DCOLOR    color,
const CEntity   entity,
float    width,
float    height
 

Puts billboard above given entity.

Parameters:
tex  Texture ID.
color  Color.
entity  Entity rederence.
width  Width (in world units).
height  Height (in world units).

void CBillboarder::putScreenBill const CResourceId   tex,
D3DCOLOR    color,
float    x1,
float    y1,
float    x2,
float    y2
 

Puts screen space billboard.

The billboard occupies given portion of the screen, no matter what texture size is.

Parameters:
tex  Texture ID.
color  Color.
x1  Left x coordinate (-1 at left, 1 at right).
y1  Top y coordinate (-1 at top, 1 at bottom).
x2  Right x coordinate (-1 at left, 1 at right).
y2  Bottom y coordinate (-1 at top, 1 at bottom).

void CBillboarder::putWorldBill const CResourceId   tex,
D3DCOLOR    color,
const D3DXVECTOR3 &    pos,
float    width,
float    height
 

Puts world space billboard.

Parameters:
tex  Texture ID.
color  Color.
pos  World space position.
width  Width (in world units).
height  Height (in world units).


Generated on Thu Dec 5 17:27:57 2002 for LT Game Jam Session by doxygen1.2.17