C# Class Infiniminer.SpriteModel

Datei anzeigen Open project: bobisfat/Infiniminer Class Usage Examples

Public Methods

Method Description
Draw ( Matrix viewMatrix, Matrix projectionMatrix, Vector3 cameraPosition, Vector3 cameraForward, Vector3 drawPosition, Vector3 drawHeading, float drawScale, Vector4 col ) : void
DrawBillboard ( Matrix viewMatrix, Matrix projectionMatrix, Vector3 cameraPosition, Vector3 cameraForward, Vector3 drawPosition, Vector3 drawHeading, float drawScale ) : void
DrawText ( Matrix viewMatrix, Matrix projectionMatrix, Vector3 drawPosition, string hoverText ) : void
DrawText ( Matrix viewMatrix, Matrix projectionMatrix, Vector3 drawPosition, string hoverText, Color color ) : void
GenerateVertices ( Vector3 cameraPosition, Vector3 drawPosition, Vector3 drawHeading, float drawScale ) : Microsoft.Xna.Framework.Graphics.VertexPositionTexture[]
ParseAnimationScript ( string animationScript ) : List
SetPassiveAnimation ( string animationScript ) : void
SetSpriteTexture ( Microsoft.Xna.Framework.Graphics.Texture2D spriteTexture ) : void
SpriteModel ( Microsoft.Xna.Framework.Game gameInstance, int numFrames ) : System
StartActiveAnimation ( string animationScript ) : void
Update ( GameTime gameTime ) : void

Protected Methods

Method Description
OnRaiseAnimationCallbackEvent ( AnimationCallbackEventArgs e ) : void

Method Details

Draw() public method

public Draw ( Matrix viewMatrix, Matrix projectionMatrix, Vector3 cameraPosition, Vector3 cameraForward, Vector3 drawPosition, Vector3 drawHeading, float drawScale, Vector4 col ) : void
viewMatrix Matrix
projectionMatrix Matrix
cameraPosition Vector3
cameraForward Vector3
drawPosition Vector3
drawHeading Vector3
drawScale float
col Vector4
return void

DrawBillboard() public method

public DrawBillboard ( Matrix viewMatrix, Matrix projectionMatrix, Vector3 cameraPosition, Vector3 cameraForward, Vector3 drawPosition, Vector3 drawHeading, float drawScale ) : void
viewMatrix Matrix
projectionMatrix Matrix
cameraPosition Vector3
cameraForward Vector3
drawPosition Vector3
drawHeading Vector3
drawScale float
return void

DrawText() public method

public DrawText ( Matrix viewMatrix, Matrix projectionMatrix, Vector3 drawPosition, string hoverText ) : void
viewMatrix Matrix
projectionMatrix Matrix
drawPosition Vector3
hoverText string
return void

DrawText() public method

public DrawText ( Matrix viewMatrix, Matrix projectionMatrix, Vector3 drawPosition, string hoverText, Color color ) : void
viewMatrix Matrix
projectionMatrix Matrix
drawPosition Vector3
hoverText string
color Color
return void

GenerateVertices() public method

public GenerateVertices ( Vector3 cameraPosition, Vector3 drawPosition, Vector3 drawHeading, float drawScale ) : Microsoft.Xna.Framework.Graphics.VertexPositionTexture[]
cameraPosition Vector3
drawPosition Vector3
drawHeading Vector3
drawScale float
return Microsoft.Xna.Framework.Graphics.VertexPositionTexture[]

OnRaiseAnimationCallbackEvent() protected method

protected OnRaiseAnimationCallbackEvent ( AnimationCallbackEventArgs e ) : void
e AnimationCallbackEventArgs
return void

ParseAnimationScript() public method

public ParseAnimationScript ( string animationScript ) : List
animationScript string
return List

SetPassiveAnimation() public method

public SetPassiveAnimation ( string animationScript ) : void
animationScript string
return void

SetSpriteTexture() public method

public SetSpriteTexture ( Microsoft.Xna.Framework.Graphics.Texture2D spriteTexture ) : void
spriteTexture Microsoft.Xna.Framework.Graphics.Texture2D
return void

SpriteModel() public method

public SpriteModel ( Microsoft.Xna.Framework.Game gameInstance, int numFrames ) : System
gameInstance Microsoft.Xna.Framework.Game
numFrames int
return System

StartActiveAnimation() public method

public StartActiveAnimation ( string animationScript ) : void
animationScript string
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void