View Full Version : How to overlay a script to a texture mapped image?

01-17-2005, 11:14 PM
I already handled the image with the command "glcolormask" to overlay colors to it and it works very good.
My problem is now to overlay a black script to this colored image, for example words or the date.
I tried it with the command "glcolor3f", but it colored the whole picture.

So if somebody knows the commandline.
Thanks, Morris

01-18-2005, 11:35 AM
That's most likely because you set the color and never set it back again.

Remember, OpenGL is a state machine - once you set something like color, everything you draw from that point on will be drawn in that color until you change the color again.

I'm not sure what it is you're trying to do, so I can't really address your problem.