C# Class CSharpGL.TextModel

Inheritance: IBufferable
Show file Open project: bitzhuwei/CSharpGL Class Usage Examples

Public Methods

Method Description
GetIndexBuffer ( ) : IndexBuffer

GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer

SetText ( string content, IFontTexture fontTextureService ) : void

TextModel ( int maxCharCount ) : System

UsesZeroIndexBuffer ( ) : bool

Uses ZeroIndexBuffer or OneIndexBuffer.

Private Methods

Method Description
SetupGlyphPositions ( string content, IFontTexture fontTexture ) : void
SetupGlyphTexCoord ( string content, IFontTexture fontTexture ) : void

Method Details

GetIndexBuffer() public method

public GetIndexBuffer ( ) : IndexBuffer
return IndexBuffer

GetVertexAttributeBuffer() public method

public GetVertexAttributeBuffer ( string bufferName, string varNameInShader ) : VertexBuffer
bufferName string
varNameInShader string
return VertexBuffer

SetText() public method

public SetText ( string content, IFontTexture fontTextureService ) : void
content string
fontTextureService IFontTexture
return void

TextModel() public method

public TextModel ( int maxCharCount ) : System
maxCharCount int
return System

UsesZeroIndexBuffer() public method

Uses ZeroIndexBuffer or OneIndexBuffer.
public UsesZeroIndexBuffer ( ) : bool
return bool