C# Класс Platformer.Sprite

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Sprite ( ) : System
Sprite ( Texture2D texture, Rectangle destBounds ) : System
Sprite ( Texture2D texture, Rectangle destBounds, Rectangle sourceBounds ) : System
Sprite ( Texture2D texture, float width, float height ) : System
draw ( SpriteBatch spriteBatch ) : void
draw ( SpriteBatch spriteBatch, int layerDepth ) : void
intersects ( Sprite other ) : bool

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

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

public Sprite ( ) : System
Результат System

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

public Sprite ( Texture2D texture, Rectangle destBounds ) : System
texture Texture2D
destBounds Rectangle
Результат System

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

public Sprite ( Texture2D texture, Rectangle destBounds, Rectangle sourceBounds ) : System
texture Texture2D
destBounds Rectangle
sourceBounds Rectangle
Результат System

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

public Sprite ( Texture2D texture, float width, float height ) : System
texture Texture2D
width float
height float
Результат System

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

public draw ( SpriteBatch spriteBatch ) : void
spriteBatch SpriteBatch
Результат void

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

public draw ( SpriteBatch spriteBatch, int layerDepth ) : void
spriteBatch SpriteBatch
layerDepth int
Результат void

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

public intersects ( Sprite other ) : bool
other Sprite
Результат bool