I'm attempting to draw text to the screen using GLUT in 2d.
I want to use glutBitmapString(), can someone show me a simple example of what you have to do to setup and properly use this method in C++ so I can draw an arbitrary string at an (X,Y) position?
glutBitmapString(void *font, const unsigned char *string);
I'm using linux, and I know I need to create a Font object, although I'm not sure exactly how and I can supply it with the string as the second arguement. However, how do I also specify the x/y position?
A quick example of this would help me greatly. If you can show me from creating the font, to calling the method that would be best.