C# Class CSharpGL.LabelRenderer

Show file Open project: bitzhuwei/CSharpGL

Public Methods

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

Create a label renderer.

ToString ( ) : string

Protected Methods

Method Description
DoInitialize ( ) : void

DoRender ( RenderEventArgs arg ) : void

Private Methods

Method Description
LabelRenderer ( IBufferable model, ShaderCode shaderCodes, AttributeMap attributeMap )

Method Details

Create() public static method

Create a label renderer.
public static Create ( int maxCharCount = 64, int labelHeight = 32, IFontTexture fontTexture = null ) : LabelRenderer
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 LabelRenderer

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