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
파일 보기 프로젝트 열기: prime31/Nez

보호된 프로퍼티들

프로퍼티 타입 설명
_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