C# Class Nez.PrototypeSprite

skewable rectangle sprite for prototyping
Inheritance: Sprite
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Méthode 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 méthode

public PrototypeSprite ( float width, float height ) : Microsoft.Xna.Framework
width float
height float
Résultat Microsoft.Xna.Framework

render() public méthode

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
Résultat void

setHeight() public méthode

sets the height of the sprite
public setHeight ( float height ) : PrototypeSprite
height float Height.
Résultat PrototypeSprite

setSkew() public méthode

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.
Résultat PrototypeSprite

setWidth() public méthode

sets the width of the sprite
public setWidth ( float width ) : PrototypeSprite
width float Width.
Résultat PrototypeSprite