C# Class WaveEngine.Components.Toolkit.TextComponent

Inheritance: BaseModel
Afficher le fichier Open project: WaveEngine/Components Class Usage Examples

Private Properties

Свойство Type Description
AddGlyph void
AddLine void
CreateInfexBuffer void
CreateMesh Mesh
RefreshBoundingBox void
RefreshLines void
RefreshMeshes void
RefreshSize void
RefreshText void
UpdateSpriteFont void

Méthodes publiques

Méthode Description
CalculateAlignmentOffset ( LineInfo &line ) : void

Calculates the alignment offset.

GetIndices ( ) : int[]

The get indices

GetVertices ( ) : System.Vector3[]

Gets the collition info.

RemoveAll ( ) : void

Removes all.

Méthodes protégées

Méthode Description
DefaultValues ( ) : void

Sets the default values of the component

Initialize ( ) : void

Initializes the component

Private Methods

Méthode Description
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

Method Details

CalculateAlignmentOffset() public méthode

Calculates the alignment offset.
public CalculateAlignmentOffset ( LineInfo &line ) : void
line LineInfo The line info.
Résultat void

DefaultValues() protected méthode

Sets the default values of the component
protected DefaultValues ( ) : void
Résultat void

GetIndices() public méthode

The get indices
public GetIndices ( ) : int[]
Résultat int[]

GetVertices() public méthode

Gets the collition info.
public GetVertices ( ) : System.Vector3[]
Résultat System.Vector3[]

Initialize() protected méthode

Initializes the component
protected Initialize ( ) : void
Résultat void

RemoveAll() public méthode

Removes all.
public RemoveAll ( ) : void
Résultat void