class DrawableText

Description

This class encapsulates all of the features common to proxy nodes which need to display text, namely the Text2D node, and the StreamingText node (which is not yet implemented).

Proxy class hierarchy

DrawableText : GeometryNode : DrawableNode : Traversable

Implementation details

The DrawableText class provides an implementation of the methods derived from the GeometryNode, DrawableNode and Traversable classes, which are common to nodes which display text strings.

When a deriving class implements the PreRender() method, it must first set the text string to be displayed. This is done by setting the data member called m_data. In addition, InitPreRender() also needs to be called by the deriving class before calling DrawableText::PreRender().

Once DrawableText::PreRender() has been called, the deriving class still needs to call UpdateBoundingRect().

Currently only ASCII text is supported, there is no support for UNICODE.