Package org.xith3d.ui.text2d

Dynamic Text for Xith (DTX) As there is no ( or no dynamic ) text node for xith3d here is mine.

See:
          Description

Class Summary
Character2D Represents a character in 3D space.
Font2D Abstraction of UI fonts.
Line2D Represents a line of text in 3D space.
MultiCharacter2D This Character2D can contain multiple Character2Ds at a time through a MultiShape3D.
Text2D As there is no ( or no dynamic ) text node for Xith3D here is mine.
 

Enum Summary
FontStyle Simple font-style abstraction.
TextAlignment Constants for text-alignment
 

Package org.xith3d.ui.text2d Description

Dynamic Text for Xith (DTX)

As there is no ( or no dynamic ) text node for xith3d here is mine. While the Text2D version org.xith3d.text.Text2D by Terje Wiesener uses a single face with a static texture this class uses a seperate Shape3d for every char it uses. Those shapes are stored in a static HashMap to prevent some load when using many text objects.

Thanks to Terje Wiesener ( who wrote the other Text2D implementation ), i borrowed the render stuff from his work :)

Usage: usage should be fairly simple: just create a Text2D object and put it somewhere into your scenegraph for more information see the Text2D class javadoc ... i believe the method names and javadoc is easy to understand

Changelog:

1.1f: third version of DTX

1.0f: second version of DTX ... full funcionality reached ... committed

Author: Florian Hofmann
Toolkit Dependancies: None
Demo(s):org.xith3d.test.Xith3DText2DTest & org.xith3d.test.Xith3DText2DDemo