C# Class Nez.PrototypeSprite

skewable rectangle sprite for prototyping
Inheritance: Sprite
Show file Open project: prime31/Nez

Public Methods

Method Description
PrototypeSprite ( float width, float height ) : Microsoft.Xna.Framework
render ( Graphics graphics, Camera camera ) : void
setHeight ( float height ) : PrototypeSprite

sets the height of the sprite

setSkew ( float skewTopX, float skewBottomX, float skewLeftY, float skewRightY ) : PrototypeSprite

sets the skew values for the sprite

setWidth ( float width ) : PrototypeSprite

sets the width of the sprite

Method Details

PrototypeSprite() public method

public PrototypeSprite ( float width, float height ) : Microsoft.Xna.Framework
width float
height float
return Microsoft.Xna.Framework

render() public method

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
return void

setHeight() public method

sets the height of the sprite
public setHeight ( float height ) : PrototypeSprite
height float Height.
return PrototypeSprite

setSkew() public method

sets the skew values for the sprite
public setSkew ( float skewTopX, float skewBottomX, float skewLeftY, float skewRightY ) : PrototypeSprite
skewTopX float Skew top x.
skewBottomX float Skew bottom x.
skewLeftY float Skew left y.
skewRightY float Skew right y.
return PrototypeSprite

setWidth() public method

sets the width of the sprite
public setWidth ( float width ) : PrototypeSprite
width float Width.
return PrototypeSprite