C# 클래스 TexturePacker.Packer

Objects that performs the packing task. Takes a list of textures as input and generates a set of atlas textures/definition pairs
파일 보기 프로젝트 열기: mfascia/TexturePacker 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AtlasSize int
Atlasses List
DebugMode bool
Error System.IO.StringWriter
FitHeuristic BestFitHeuristic
Log System.IO.StringWriter
Padding int
SourceTextures List

공개 메소드들

메소드 설명
Packer ( ) : System
Process ( string _SourceDir, string _Pattern, int _AtlasSize, int _Padding, bool _DebugMode ) : void
SaveAtlasses ( string _Destination ) : void

비공개 메소드들

메소드 설명
CreateAtlasImage ( Atlas _Atlas ) : Image
FindBestFitForNode ( Node _Node, List _Textures ) : TextureInfo
HorizontalSplit ( Node _ToSplit, int _Width, int _Height, List _List ) : void
LayoutAtlas ( List _Textures, Atlas _Atlas ) : List
ScanForTextures ( string _Path, string _Wildcard ) : void
VerticalSplit ( Node _ToSplit, int _Width, int _Height, List _List ) : void

메소드 상세

Packer() 공개 메소드

public Packer ( ) : System
리턴 System

Process() 공개 메소드

public Process ( string _SourceDir, string _Pattern, int _AtlasSize, int _Padding, bool _DebugMode ) : void
_SourceDir string
_Pattern string
_AtlasSize int
_Padding int
_DebugMode bool
리턴 void

SaveAtlasses() 공개 메소드

public SaveAtlasses ( string _Destination ) : void
_Destination string
리턴 void

프로퍼티 상세

AtlasSize 공개적으로 프로퍼티

Size of the atlas in pixels. Represents one axis, as atlases are square
public int AtlasSize
리턴 int

Atlasses 공개적으로 프로퍼티

List of all the output atlases
public List Atlasses
리턴 List

DebugMode 공개적으로 프로퍼티

Toggle for debug mode, resulting in debug atlasses to check the packing algorithm
public bool DebugMode
리턴 bool

Error 공개적으로 프로퍼티

Stream that recieves all the error info
public StringWriter,System.IO Error
리턴 System.IO.StringWriter

FitHeuristic 공개적으로 프로퍼티

Which heuristic to use when doing the fit
public BestFitHeuristic FitHeuristic
리턴 BestFitHeuristic

Log 공개적으로 프로퍼티

Stream that recieves all the info logged
public StringWriter,System.IO Log
리턴 System.IO.StringWriter

Padding 공개적으로 프로퍼티

Number of pixels that separate textures in the atlas
public int Padding
리턴 int

SourceTextures 공개적으로 프로퍼티

List of all the textures that need to be packed
public List SourceTextures
리턴 List