C# Класс Engine.Objects.TextureAtlas

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

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

Метод Описание
GetImageAt ( uint index ) : Image
Refresh ( ) : void
SetImageAt ( uint index, Image img ) : void

This will clip the image, replacing the atlas graphic. In order to change the physical bounds, see update(image[]).

TextureAtlas ( TextureAtlas copy ) : System
TextureAtlas ( uint size ) : System
Update ( Image images, bool clear = false ) : void

Packs the images in the image list into a single texture.

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

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

public GetImageAt ( uint index ) : Image
index uint
Результат Image

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

public Refresh ( ) : void
Результат void

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

This will clip the image, replacing the atlas graphic. In order to change the physical bounds, see update(image[]).
public SetImageAt ( uint index, Image img ) : void
index uint
img Image
Результат void

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

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

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

public TextureAtlas ( uint size ) : System
size uint
Результат System

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

Packs the images in the image list into a single texture.
public Update ( Image images, bool clear = false ) : void
images Image
clear bool
Результат void