| V_Sim API - Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
enum OpenGLTextSize; void openGLText_drawChars (gchar *s,OpenGLTextSize size); void openGLText_initFontList (); void openGLText_rebuildFontList (); void openGLText_onNewContext ();
For the moment, this module is very basic and the only fonts available is the helvetica 12 one. This module is currently broken under Windows.
typedef enum
{
TEXT_NORMAL,
TEXT_SMALL
} OpenGLTextSize;
Different text size available in V_Sim.
void openGLText_drawChars (gchar *s,OpenGLTextSize size);
Draw the given string on the current raster position with default font.
|
a string. |
|
the size of the text to render. |
void openGLText_initFontList ();
Initialise the font drawing with default font (depending on system).
It must be called before openGLText_drawChars() and not in a glNewList().
Can be called several times, fonts are initialized once only. Use
openGLText_rebuildFontList() to force to build a new font list.
void openGLText_rebuildFontList ();
Force to buid a new font list (for example new context has changed.
void openGLText_onNewContext ();
Set the flag for text list build to FALSE. It will force to rebuild
the text lists at next call of openGLText_initFontList().
Since 3.6