C# 클래스 Fusion.Engine.Graphics.TextureAtlas

Represents texture atlas.
상속: System.DisposableBase
파일 보기 프로젝트 열기: demiurghg/FusionEngine 1 사용 예제들

공개 메소드들

메소드 설명
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