C# Класс geek.GameEngine.Sprites.Sprite

Basic class for a non-animated sprite.
Наследование: SpriteBase
Показать файл Открыть проект

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

Метод Описание
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