Polycode
Polycode::SceneLabel Class Reference

3D text label. More...

Inherits Polycode::ScenePrimitive.

List of all members.

Public Member Functions

 SceneLabel (const String &fontName, const String &text, int size, Number scale, int amode)
 Constructor.
void setText (const String &newText)
 Sets new text for the labe.

Detailed Description

3D text label.

Creates a 3D text label.


Constructor & Destructor Documentation

SceneLabel::SceneLabel ( const String fontName,
const String text,
int  size,
Number  scale,
int  amode 
)

Constructor.

Parameters:
fontNameName of a registered font to use.
See also:
FontManager for info on how to register fonts.
Parameters:
textText to display.
sizeSize in pixels.
scaleScale to multiply pixel size by for the actual world size of the label.
Anti-aliasingmode. Can be Label::ANTIALIAS_FULL or Label::ANTIALIAS_NONE.

Member Function Documentation

void SceneLabel::setText ( const String newText)

Sets new text for the labe.

Parameters:
newTextNew text to display.