프로퍼티 | 타입 | 설명 | |
---|---|---|---|
EnsureOcclusion | bool | ||
Mode | BillboardMode |
메소드 | 설명 | |
---|---|---|
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 |
리턴 | System |
public Draw ( |
||
gameTime | The elapsed game time. | |
리턴 | void |
public generateParticles ( Vector3 particlePositions ) : void | ||
particlePositions | Vector3 | Positions of the billboards |
리턴 | void |