mdog1234, you some code for me, which will use glutBitmapCharacter to display char*. I’m trying (with no luck) to rewrite that function so that it will display integers (>9999, that is over 4 digits long).
How can I rewrite this function (below) to accept and display integers.
I’d really appreciate your help.
Thank you,
Luke
void Text: rintText (void* font, char* string, int x, int y) {
if (string && strlen(string))
{
glPushMatrix();
glLoadIdentity();
glRasterPos2d(x,y);
while (*string)
{
glutBitmapCharacter(font,*string);
string++;
}
glPopMatrix();
}
}