C# Class tk2dAtlas.AtlasBuilder

显示文件 Open project: CodeStrumpet/Elemental Class Usage Examples

Public Methods

Method Description
AddRect ( int width, int height ) : void
AtlasBuilder ( int atlasWidth, int atlasHeight, int maxAllowedAtlasCount ) : System
Build ( ) : int
GetAtlasData ( ) : tk2dAtlas.AtlasData[]
GetRemainingRectIndices ( ) : int[]
HasOversizeTextures ( ) : bool

Private Methods

Method Description
FindBestBinPacker ( int width, int height, List &currRects, bool &allUsed ) : MaxRectsBinPack

Method Details

AddRect() public method

public AddRect ( int width, int height ) : void
width int
height int
return void

AtlasBuilder() public method

public AtlasBuilder ( int atlasWidth, int atlasHeight, int maxAllowedAtlasCount ) : System
atlasWidth int
atlasHeight int
maxAllowedAtlasCount int
return System

Build() public method

public Build ( ) : int
return int

GetAtlasData() public method

public GetAtlasData ( ) : tk2dAtlas.AtlasData[]
return tk2dAtlas.AtlasData[]

GetRemainingRectIndices() public method

public GetRemainingRectIndices ( ) : int[]
return int[]

HasOversizeTextures() public method

public HasOversizeTextures ( ) : bool
return bool