glut text rendering in wrong color
I'm working on a project for school where I need to be able to render colored glut_bitmap fonts. I have a text object that contains a color class to control its color. The color class just contains rgb floats and has a function bind() that calls glColor3f(r,g,b). The business part of the text class's render function is:
This renders the font ok, but in the color that the last thing rendered used. Is there some trick with rendering to the raster position that requires setting the color seperately or something?
for (i = 0; i < str.size(); ++i)
Edit: I know that the values in the color class are set correctly.