Text

void writeBitmapString( GLfloat x, GLfloat y, char *string )
// Outputs a string of characters using a Glut bitmap font.  The parameters
// x and y specify the location in the x-y plane where the string should
// begin.
{
    int len;
    
    glRasterPos2f( x, y );          // Position cursor at (x,y)
    
    len = (int) strlen( string );	
    for ( int i = 0; i < len; i++ )     // Write string one char at a time
    {
        glutBitmapCharacter( GLUT_BITMAP_9_BY_15, string[i] );
    }
}