C# Class Bug.Utils.AnimatedTexture2D

Mostrar archivo Open project: Projectfights/Fight-insect Class Usage Examples

Public Methods

Method Description
AnimatedTexture2D ( Microsoft.Xna.Framework.Graphics.Texture2D sheet_, int w_, int h_, int row_, int col_, int fps_ ) : Microsoft.Xna.Framework
GetHeight ( ) : int
GetSheet ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
GetWidth ( ) : int
GetWindow ( ) : Rectangle
Reset ( ) : void
SetFPS ( int fps ) : void
SetSheet ( Microsoft.Xna.Framework.Graphics.Texture2D sheet_ ) : void
UpdateTime ( GameTime gameTime ) : void

Private Methods

Method Description
GetFps ( ) : double
GetNumFrames ( ) : double

Method Details

AnimatedTexture2D() public method

public AnimatedTexture2D ( Microsoft.Xna.Framework.Graphics.Texture2D sheet_, int w_, int h_, int row_, int col_, int fps_ ) : Microsoft.Xna.Framework
sheet_ Microsoft.Xna.Framework.Graphics.Texture2D
w_ int
h_ int
row_ int
col_ int
fps_ int
return Microsoft.Xna.Framework

GetHeight() public method

public GetHeight ( ) : int
return int

GetSheet() public method

public GetSheet ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
return Microsoft.Xna.Framework.Graphics.Texture2D

GetWidth() public method

public GetWidth ( ) : int
return int

GetWindow() public method

public GetWindow ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

Reset() public method

public Reset ( ) : void
return void

SetFPS() public method

public SetFPS ( int fps ) : void
fps int
return void

SetSheet() public method

public SetSheet ( Microsoft.Xna.Framework.Graphics.Texture2D sheet_ ) : void
sheet_ Microsoft.Xna.Framework.Graphics.Texture2D
return void

UpdateTime() public method

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