C# Class MonoGdx.Graphics.G2D.Sprite

Inheritance: TextureRegion
Show file Open project: jaquadro/MonoGdx Class Usage Examples

Public Methods

Method Description
Draw ( GdxSpriteBatch spriteBatch ) : void
Draw ( GdxSpriteBatch spriteBatch, float alphaModulation ) : void
Flip ( bool x, bool y ) : void
GetBoundingRectangle ( ) : RectangleF
Rotate ( float angle ) : void
Rotate90 ( bool clockwise ) : void
Scale ( float amount ) : void
Scroll ( float xAmount, float yAmount ) : void
Set ( Sprite sprite ) : void
SetBounds ( float x, float y, float width, float height ) : void
SetOrigin ( float originX, float originY ) : void
SetPosition ( float x, float y ) : void
SetRegion ( float u, float v, float u2, float v2 ) : void
SetScale ( float scale ) : void
SetScale ( float scaleX, float scaleY ) : void
SetSize ( float width, float height ) : void
Sprite ( ) : System
Sprite ( Sprite sprite ) : System
Sprite ( TextureContext texture ) : System
Sprite ( TextureContext texture, int srcWidth, int srcHeight ) : System
Sprite ( TextureContext texture, int srcX, int srcY, int srcWidth, int srcHeight ) : System
Sprite ( TextureRegion region ) : System
Sprite ( TextureRegion region, int srcX, int srcY, int srcWidth, int srcHeight ) : System
Translate ( float xAmount, float yAmount ) : void
TranslateX ( float xAmount ) : void
TranslateY ( float yAmount ) : void

Method Details

Draw() public method

public Draw ( GdxSpriteBatch spriteBatch ) : void
spriteBatch GdxSpriteBatch
return void

Draw() public method

public Draw ( GdxSpriteBatch spriteBatch, float alphaModulation ) : void
spriteBatch GdxSpriteBatch
alphaModulation float
return void

Flip() public method

public Flip ( bool x, bool y ) : void
x bool
y bool
return void

GetBoundingRectangle() public method

public GetBoundingRectangle ( ) : RectangleF
return MonoGdx.Geometry.RectangleF

Rotate() public method

public Rotate ( float angle ) : void
angle float
return void

Rotate90() public method

public Rotate90 ( bool clockwise ) : void
clockwise bool
return void

Scale() public method

public Scale ( float amount ) : void
amount float
return void

Scroll() public method

public Scroll ( float xAmount, float yAmount ) : void
xAmount float
yAmount float
return void

Set() public method

public Set ( Sprite sprite ) : void
sprite Sprite
return void

SetBounds() public method

public SetBounds ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
return void

SetOrigin() public method

public SetOrigin ( float originX, float originY ) : void
originX float
originY float
return void

SetPosition() public method

public SetPosition ( float x, float y ) : void
x float
y float
return void

SetRegion() public method

public SetRegion ( float u, float v, float u2, float v2 ) : void
u float
v float
u2 float
v2 float
return void

SetScale() public method

public SetScale ( float scale ) : void
scale float
return void

SetScale() public method

public SetScale ( float scaleX, float scaleY ) : void
scaleX float
scaleY float
return void

SetSize() public method

public SetSize ( float width, float height ) : void
width float
height float
return void

Sprite() public method

public Sprite ( ) : System
return System

Sprite() public method

public Sprite ( Sprite sprite ) : System
sprite Sprite
return System

Sprite() public method

public Sprite ( TextureContext texture ) : System
texture TextureContext
return System

Sprite() public method

public Sprite ( TextureContext texture, int srcWidth, int srcHeight ) : System
texture TextureContext
srcWidth int
srcHeight int
return System

Sprite() public method

public Sprite ( TextureContext texture, int srcX, int srcY, int srcWidth, int srcHeight ) : System
texture TextureContext
srcX int
srcY int
srcWidth int
srcHeight int
return System

Sprite() public method

public Sprite ( TextureRegion region ) : System
region TextureRegion
return System

Sprite() public method

public Sprite ( TextureRegion region, int srcX, int srcY, int srcWidth, int srcHeight ) : System
region TextureRegion
srcX int
srcY int
srcWidth int
srcHeight int
return System

Translate() public method

public Translate ( float xAmount, float yAmount ) : void
xAmount float
yAmount float
return void

TranslateX() public method

public TranslateX ( float xAmount ) : void
xAmount float
return void

TranslateY() public method

public TranslateY ( float yAmount ) : void
yAmount float
return void