C# Класс Fusion.Engine.Graphics.TextureAtlas

Represents texture atlas.
Наследование: System.DisposableBase
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetNormalizedRectangles ( int maxCount = -1 ) : RectangleF[]

Gets float rectangles of all subimages in normalized texture coordibates

GetRectangles ( int maxCount = -1 ) : Rectangle[]

Gets rectangles of all subimages in texels.

GetSubImageNames ( ) : string[]

Gets names of all subimages.

IndexOf ( string name ) : int

Gets index if particular subimage.

TextureAtlas ( RenderSystem rs, Stream stream, bool useSRgb = false ) : System

Creates texture atlas from stream.

this ( int index ) : Rectangle

Gets subimage rectangle by its index

this ( string name ) : Rectangle

Gets subimage rectangle by its index

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Disposes texture atlas.

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

Dispose() защищенный Метод

Disposes texture atlas.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Gets float rectangles of all subimages in normalized texture coordibates
public GetNormalizedRectangles ( int maxCount = -1 ) : RectangleF[]
maxCount int Maximum number of recatangles. /// If maxCount greater than number of images the rest of /// he array will be filled with zeroed rectangles.
Результат RectangleF[]

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

Gets rectangles of all subimages in texels.
public GetRectangles ( int maxCount = -1 ) : Rectangle[]
maxCount int Maximum number of recatangles. /// If maxCount greater than number of images /// the rest of the array will be filled with zeroed rectangles.
Результат Rectangle[]

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

Gets names of all subimages.
public GetSubImageNames ( ) : string[]
Результат string[]

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

Gets index if particular subimage.
public IndexOf ( string name ) : int
name string
Результат int

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

Creates texture atlas from stream.
public TextureAtlas ( RenderSystem rs, Stream stream, bool useSRgb = false ) : System
rs RenderSystem
stream Stream
useSRgb bool
Результат System

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

Gets subimage rectangle by its index
public this ( int index ) : Rectangle
index int
Результат Rectangle

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

Gets subimage rectangle by its index
public this ( string name ) : Rectangle
name string
Результат Rectangle