C# Class exSpriteFont, ex2d-v1

Inheritance: exSpriteBase
ファイルを表示 Open project: exdev/ex2d-v1 Class Usage Examples

Public Methods

Method Description
CalculateSize ( float &_lineWidths, float &_kernings, float &_halfWidthScaled, float &_halfHeightScaled, float &_offsetX, float &_offsetY ) : void
Clear ( ) : void
Commit ( ) : void
ForceUpdateMesh ( Mesh _mesh ) : void
GetCharRect ( int _idx ) : Rect
SetCharColor ( int _idx, Color _topColor, Color _botColor, float _alpha ) : void
UpdateMesh ( Mesh _mesh ) : void

Protected Methods

Method Description
Awake ( ) : void
UpdateOutline ( int _vertexStartAt, int _indexStartAt, int _srcVertexStartAt, Vector3 _vertices, Vector2 _uvs, int _indices ) : void
UpdateShadow ( int _vertexStartAt, int _indexStartAt, int _srcVertexStartAt, Vector3 _vertices, Vector2 _uvs, int _indices ) : void

Method Details

Awake() protected method

protected Awake ( ) : void
return void

CalculateSize() public method

public CalculateSize ( float &_lineWidths, float &_kernings, float &_halfWidthScaled, float &_halfHeightScaled, float &_offsetX, float &_offsetY ) : void
_lineWidths float
_kernings float
_halfWidthScaled float
_halfHeightScaled float
_offsetX float
_offsetY float
return void

Clear() public method

public Clear ( ) : void
return void

Commit() public method

public Commit ( ) : void
return void

ForceUpdateMesh() public method

public ForceUpdateMesh ( Mesh _mesh ) : void
_mesh Mesh
return void

GetCharRect() public method

public GetCharRect ( int _idx ) : Rect
_idx int
return Rect

SetCharColor() public method

public SetCharColor ( int _idx, Color _topColor, Color _botColor, float _alpha ) : void
_idx int
_topColor Color
_botColor Color
_alpha float
return void

UpdateMesh() public method

public UpdateMesh ( Mesh _mesh ) : void
_mesh Mesh
return void

UpdateOutline() protected method

protected UpdateOutline ( int _vertexStartAt, int _indexStartAt, int _srcVertexStartAt, Vector3 _vertices, Vector2 _uvs, int _indices ) : void
_vertexStartAt int
_indexStartAt int
_srcVertexStartAt int
_vertices Vector3
_uvs Vector2
_indices int
return void

UpdateShadow() protected method

protected UpdateShadow ( int _vertexStartAt, int _indexStartAt, int _srcVertexStartAt, Vector3 _vertices, Vector2 _uvs, int _indices ) : void
_vertexStartAt int
_indexStartAt int
_srcVertexStartAt int
_vertices Vector3
_uvs Vector2
_indices int
return void