Property | Type | Description | |
---|---|---|---|
EnsureOcclusion | bool | ||
Mode | BillboardMode |
Method | Description | |
---|---|---|
BillboardSystem ( Game game, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 billboardSize, Vector3 particlePositions ) : System |
Constructor that initialize the billboard attributes
|
|
Draw ( |
This method renders the current state.
|
|
drawBillboards ( ) : void | ||
drawOpaquePixels ( ) : void | ||
drawTransparentPixels ( ) : void | ||
generateParticles ( Vector3 particlePositions ) : void |
Generate the particles (vertex and index array) for each billboard
|
|
setEffectParameters ( ) : void |
Set the billboard effect paramaters
|
public BillboardSystem ( Game game, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 billboardSize, Vector3 particlePositions ) : System | ||
game | Game | Instance of MyGame this drawable game component is attached to |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | The Texture2D(2D picture) that is drawn at every position |
billboardSize | Vector2 | Size of billboard |
particlePositions | Vector3 | Positions of the billboards |
return | System |
public Draw ( |
||
gameTime | The elapsed game time. | |
return | void |
public generateParticles ( Vector3 particlePositions ) : void | ||
particlePositions | Vector3 | Positions of the billboards |
return | void |