• Advertisement
Sign in to follow this  

glutStrokeCharacter

This topic is 2525 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

has anyone successfully used glutStrokeCharacter?

i keep trying it, and nothing shows up.

void output(GLfloat x, GLfloat y, char *text)
{
char *p;

glPushMatrix();
glTranslatef(x, y, 0);
for (p = text; *p; p++)
glutStrokeCharacter(GLUT_STROKE_MONO_ROMAN, *p);


glPopMatrix();
}

Share this post


Link to post
Share on other sites
Advertisement
the trick is to put some scaling in like this:

glScalef(0.003,0.003,1);
output(0, 0, "This is antialiased.");

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement