C# Class OpenTKEngine.Sprite

Mostrar archivo Open project: jikoriko/OpentkEngine Class Usage Examples

Public Properties

Property Type Description
SpriteSheet Texture

Public Methods

Method Description
GetHeight ( ) : int
GetWidth ( ) : int
IncrementXFrame ( ) : void
IncrementYFrame ( ) : void
Render ( OpenTK.Vector3 pos ) : void
Render ( OpenTK.Vector3 pos, Color4 color ) : void
Render ( OpenTK.Vector3 pos, float rotation, OpenTK.Vector3 offset, Color4 color ) : void
Render ( float x, float y, float z ) : void
Sprite ( Texture spriteSheet ) : System.Drawing
Sprite ( Texture spriteSheet, int xFrames, int yFrames ) : System.Drawing

Method Details

GetHeight() public method

public GetHeight ( ) : int
return int

GetWidth() public method

public GetWidth ( ) : int
return int

IncrementXFrame() public method

public IncrementXFrame ( ) : void
return void

IncrementYFrame() public method

public IncrementYFrame ( ) : void
return void

Render() public method

public Render ( OpenTK.Vector3 pos ) : void
pos OpenTK.Vector3
return void

Render() public method

public Render ( OpenTK.Vector3 pos, Color4 color ) : void
pos OpenTK.Vector3
color Color4
return void

Render() public method

public Render ( OpenTK.Vector3 pos, float rotation, OpenTK.Vector3 offset, Color4 color ) : void
pos OpenTK.Vector3
rotation float
offset OpenTK.Vector3
color Color4
return void

Render() public method

public Render ( float x, float y, float z ) : void
x float
y float
z float
return void

Sprite() public method

public Sprite ( Texture spriteSheet ) : System.Drawing
spriteSheet Texture
return System.Drawing

Sprite() public method

public Sprite ( Texture spriteSheet, int xFrames, int yFrames ) : System.Drawing
spriteSheet Texture
xFrames int
yFrames int
return System.Drawing

Property Details

SpriteSheet public_oe property

public Texture SpriteSheet
return Texture