Sign in to follow this  

opengl text on mac

Recommended Posts

[quote name='ms75214' timestamp='1298504390' post='4778198']
is there an easy way to do opengl text on mac?


you can use this

drawGLString(GLfloat x, GLfloat y, char *string)
int len, i;

glRasterPos2f(x, y);
len = (int) strlen(string);
for (i = 0; i < len; i++) {

glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, string[i]);

but is there a way to make it bigger?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this