I have a couple of questions on OpenGL-
Related to menus - Can I somehow rename a menu item in OpenGL ? For e.g. - I have a menu item which says ‘Start Game’ and when the game is on it would change to ‘Restart game’.
Else, is there a way to disable a menu item ?
How to display text in OpenGL ?
I tried the following function but the font size it shows is huge as I guess glutStrokeCharacter displays fixed font sizes-
void output(char *ptr, float x, float y, float w)
glTranslatef(x,y,Z); //Z is fixed
I even thought of using glutBitmapCharacter(), but even that has a fixed sized fonts, the maximum being 24 points.
Is there any means by which my font size can vary as I resize my window ?