C# Класс WaveEngine.Components.Toolkit.TextComponent

Наследование: BaseModel
Показать файл Открыть проект Примеры использования класса

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