C# Class CSharpGL.TextRenderer

Mostrar archivo Open project: bitzhuwei/CSharpGL

Private Properties

Property Type Description
TextRenderer

Public Methods

Method Description
Create ( int maxCharCount = 64, int labelHeight = 32, IFontTexture fontTexture = null ) : TextRenderer

Create a text renderer.

ToString ( ) : string

Protected Methods

Method Description
DoInitialize ( ) : void

DoRender ( RenderEventArgs arg ) : void

Private Methods

Method Description
TextRenderer ( TextModel model, ShaderCode shaderCodes, AttributeMap attributeMap )

Renders a label(a single line of text).

Method Details

Create() public static method

Create a text renderer.
public static Create ( int maxCharCount = 64, int labelHeight = 32, IFontTexture fontTexture = null ) : TextRenderer
maxCharCount int Max char count to display for this label. Careful to set this value because greater means more space ocupied in GPU nemory.
labelHeight int Label height(in pixels)
fontTexture IFontTexture Use which font to render text?
return TextRenderer

DoInitialize() protected method

protected DoInitialize ( ) : void
return void

DoRender() protected method

protected DoRender ( RenderEventArgs arg ) : void
arg RenderEventArgs
return void

ToString() public method

public ToString ( ) : string
return string