PDA

View Full Version : Raster color



Questions Burner
09-15-2002, 05:20 AM
glColor3f(1.0, 0.0, 0.0); /* RED */
glRasterPos2i(20, 15);
glBitmap(w, h, 0, 0, xmove, ymove, red_bitmap);
glColor3f(0.0, 1.0, 0.0); /* GREEN */
glBitmap(w, h, 0, 0, xmove, ymove, green_bitmap);


Both bitmaps are render red, how to solve this problem?

Bob
09-15-2002, 05:55 AM
Call glRasterPos again after setting the new color.

Questions Burner
09-15-2002, 09:26 PM
Thanks.