C# Класс 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.
Наследование: Sprite
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_sourceRect Microsoft.Xna.Framework.Rectangle

Открытые методы

Метод Описание
TiledSprite ( Subtexture subtexture ) : Nez.Sprites
TiledSprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Nez.Sprites
render ( Graphics graphics, Camera camera ) : void

Описание методов

TiledSprite() публичный Метод

public TiledSprite ( Subtexture subtexture ) : Nez.Sprites
subtexture Nez.Textures.Subtexture
Результат Nez.Sprites

TiledSprite() публичный Метод

public TiledSprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Nez.Sprites
texture Microsoft.Xna.Framework.Graphics.Texture2D
Результат Nez.Sprites

render() публичный Метод

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
Результат void

Описание свойств

_sourceRect защищенное свойство

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
Результат Microsoft.Xna.Framework.Rectangle