C# Class PGMEBackend.AnimatedTexture

显示文件 Open project: Diegoisawesome/AwesomeMapEditor-old Class Usage Examples

Public Properties

Property Type Description
CurrentFrame int
Framerate float
Height int
Sheet Spritesheet
Width int

Public Methods

Method Description
Draw ( double x, double y, double scale ) : void
FrameAdvance ( int num ) : void
Load ( Bitmap bmp, int width, int height ) : AnimatedTexture
Load ( Bitmap bmp, int width, int height, TextureFilteringMode mode ) : AnimatedTexture
Load ( string path, int width, int height ) : AnimatedTexture
Load ( string path, int width, int height, TextureFilteringMode mode ) : AnimatedTexture

Method Details

Draw() public method

public Draw ( double x, double y, double scale ) : void
x double
y double
scale double
return void

FrameAdvance() public method

public FrameAdvance ( int num ) : void
num int
return void

Load() public static method

public static Load ( Bitmap bmp, int width, int height ) : AnimatedTexture
bmp System.Drawing.Bitmap
width int
height int
return AnimatedTexture

Load() public static method

public static Load ( Bitmap bmp, int width, int height, TextureFilteringMode mode ) : AnimatedTexture
bmp System.Drawing.Bitmap
width int
height int
mode TextureFilteringMode
return AnimatedTexture

Load() public static method

public static Load ( string path, int width, int height ) : AnimatedTexture
path string
width int
height int
return AnimatedTexture

Load() public static method

public static Load ( string path, int width, int height, TextureFilteringMode mode ) : AnimatedTexture
path string
width int
height int
mode TextureFilteringMode
return AnimatedTexture

Property Details

CurrentFrame public_oe property

public int CurrentFrame
return int

Framerate public_oe property

public float Framerate
return float

Height public_oe property

public int Height
return int

Sheet public_oe property

public Spritesheet,PGMEBackend Sheet
return Spritesheet

Width public_oe property

public int Width
return int