C# Class Nez.TiledSprite

Tiled sprite. Note that TiledSprite overrides the Material so that it can wrap the UVs. This class requires the texture to not be part of an atlas so that wrapping can work.
Inheritance: Sprite
Afficher le fichier Open project: prime31/Nez

Protected Properties

Свойство Type Description
_sourceRect Microsoft.Xna.Framework.Rectangle

Méthodes publiques

Méthode Description
TiledSprite ( Subtexture subtexture ) : Nez.Sprites
TiledSprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Nez.Sprites
render ( Graphics graphics, Camera camera ) : void

Method Details

TiledSprite() public méthode

public TiledSprite ( Subtexture subtexture ) : Nez.Sprites
subtexture Nez.Textures.Subtexture
Résultat Nez.Sprites

TiledSprite() public méthode

public TiledSprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Nez.Sprites
texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat Nez.Sprites

render() public méthode

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

Property Details

_sourceRect protected_oe property

we keep a copy of the sourceRect so that we dont change the Subtexture in case it is used elsewhere
protected Rectangle,Microsoft.Xna.Framework _sourceRect
Résultat Microsoft.Xna.Framework.Rectangle