Anton Koning (anton++at++sara.nl)
Wed, 7 Oct 1998 09:18:12 +0200 (MET DST)
You can either use OpenGL in combination with Performer (tricky) or use
the Performer pfText object to render 2D or 3D text:
pfFont *font = pfdLoadFont_type1("Helvetica-Bold", PFDFONT_FILLED);
pfString *string = new pfString;
string->setFont(font);
string->setMode(PFSTR_JUSTIFY, PFSTR_LEFT);
string->setColor(0.0, 0.0, 0.5, 1.0);
string->setString(tmp_text);
pfText *text = new pfText;
text->addString(string);
scene->addChild(text);
Performer comes with two fonts in /usr/share/Performer/data. Utilities to
create your own fonts can be found on the SGI Developer Toolbox website
(look for Dave Haeberli's font utilities).
------------------------------------------------------------------------------
| Anton H.J. Koning, Ph.D. | Consultant, Academic Computing Services Amsterdam |
| e-mail: anton++at++sara.nl | s-mail: P.O. Box 94613, NL-1090 GP Amsterdam |
------------------------------------------------------------------------------
This archive was generated by hypermail 2.0b2 on Wed Oct 07 1998 - 00:18:19 PDT