Open NewbiZ opened 11 years ago
Configuration:
Text2DItem text;
text.set_color(0.5, 1.0, 0.);
text.set_text("Hello world!");
text.set_position(50., 100.);
Rendering:
text.render();
glColor() should be restored upon drawing the text.
You can instantiate a 2D text item with
Text2DItem
Constructor and display it on the screen by simply calling itsrender()
public member function. TODO: Pregenerate the bitmaps for the string to be displayed.