C# 클래스 geek.GameEngine.Sprites.Sprite

Basic class for a non-animated sprite.
상속: SpriteBase
파일 보기 프로젝트 열기: impworks/xna.geek.engine

공개 메소드들

메소드 설명
Draw ( SpriteBatch batch, bool disableLayering = false ) : void

Display the sprite to the screen.

GetTextureRegion ( Rectangle rect ) : Color[]

Get a portion of the current frame's texture as a sequence of colors.

Sprite ( GameObject parent, Microsoft.Xna.Framework.Graphics.Texture2D tex ) : System

메소드 상세

Draw() 공개 메소드

Display the sprite to the screen.
public Draw ( SpriteBatch batch, bool disableLayering = false ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch Sprite batch.
disableLayering bool Whether to use layer ordering or not.
리턴 void

GetTextureRegion() 공개 메소드

Get a portion of the current frame's texture as a sequence of colors.
public GetTextureRegion ( Rectangle rect ) : Color[]
rect Microsoft.Xna.Framework.Rectangle Rectangle to retrieve.
리턴 Color[]

Sprite() 공개 메소드

public Sprite ( GameObject parent, Microsoft.Xna.Framework.Graphics.Texture2D tex ) : System
parent geek.GameEngine.Visuals.GameObject
tex Microsoft.Xna.Framework.Graphics.Texture2D
리턴 System