C# Class GameEngine.Drawing.Bitmap.StaticImage

Inheritance: BitmapDrawable
显示文件 Open project: MichaelAquilina/Some-2D-RPG

Public Methods

Method Description
CalculateOrigin ( int x, int y ) : Vector2
GetSourceRectangle ( double elapsedMS ) : Rectangle?
GetSourceTexture ( double elapsedMS ) : Microsoft.Xna.Framework.Graphics.Texture2D
StaticImage ( Microsoft.Xna.Framework.Graphics.Texture2D sourceTexture, Rectangle sourceRectangle ) : GameEngine.Interfaces
ToString ( ) : string

Method Details

CalculateOrigin() public method

public CalculateOrigin ( int x, int y ) : Vector2
x int
y int
return Microsoft.Xna.Framework.Vector2

GetSourceRectangle() public method

public GetSourceRectangle ( double elapsedMS ) : Rectangle?
elapsedMS double
return Rectangle?

GetSourceTexture() public method

public GetSourceTexture ( double elapsedMS ) : Microsoft.Xna.Framework.Graphics.Texture2D
elapsedMS double
return Microsoft.Xna.Framework.Graphics.Texture2D

StaticImage() public method

public StaticImage ( Microsoft.Xna.Framework.Graphics.Texture2D sourceTexture, Rectangle sourceRectangle ) : GameEngine.Interfaces
sourceTexture Microsoft.Xna.Framework.Graphics.Texture2D
sourceRectangle Microsoft.Xna.Framework.Rectangle
return GameEngine.Interfaces

ToString() public method

public ToString ( ) : string
return string