C# 클래스 WaveEngine.Components.Toolkit.TextComponent

상속: BaseModel
파일 보기 프로젝트 열기: WaveEngine/Components 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddGlyph void
AddLine void
CreateInfexBuffer void
CreateMesh Mesh
RefreshBoundingBox void
RefreshLines void
RefreshMeshes void
RefreshSize void
RefreshText void
UpdateSpriteFont void

공개 메소드들

메소드 설명
CalculateAlignmentOffset ( LineInfo &line ) : void

Calculates the alignment offset.

GetIndices ( ) : int[]

The get indices

GetVertices ( ) : System.Vector3[]

Gets the collition info.

RemoveAll ( ) : void

Removes all.

보호된 메소드들

메소드 설명
DefaultValues ( ) : void

Sets the default values of the component

Initialize ( ) : void

Initializes the component

비공개 메소드들

메소드 설명
AddGlyph ( char character, System.Vector2 position, Rectangle sourceRectangle ) : void

Adds a glyph to the vertex buffer

AddLine ( string text, System.Vector2 initOffset, System.Color color ) : void

Updates the vertex buffer of the text

CreateInfexBuffer ( ) : void

Updates the size of the index buffer.

CreateMesh ( ) : Mesh

Creates the mesh.

RefreshBoundingBox ( ) : void

Updates the bonding box

RefreshLines ( ) : void

Updates the text lines

RefreshMeshes ( ) : void

Refreshes the meshes

RefreshSize ( ) : void

Updates the lines info of the text component

RefreshText ( ) : void

Refreshes the text

UpdateSpriteFont ( ) : void

Updates the sprite font

메소드 상세

CalculateAlignmentOffset() 공개 메소드

Calculates the alignment offset.
public CalculateAlignmentOffset ( LineInfo &line ) : void
line LineInfo The line info.
리턴 void

DefaultValues() 보호된 메소드

Sets the default values of the component
protected DefaultValues ( ) : void
리턴 void

GetIndices() 공개 메소드

The get indices
public GetIndices ( ) : int[]
리턴 int[]

GetVertices() 공개 메소드

Gets the collition info.
public GetVertices ( ) : System.Vector3[]
리턴 System.Vector3[]

Initialize() 보호된 메소드

Initializes the component
protected Initialize ( ) : void
리턴 void

RemoveAll() 공개 메소드

Removes all.
public RemoveAll ( ) : void
리턴 void