Krimsom King
04-05-2012, 07:30 PM
Hi There,
I am trying to show a colored quad on the 2D screen with the following code:
glColor3f(1.0f, 1.0f, 1.0f);
glBegin(GL_QUADS);
glVertex2f(300, 500); // vertex 1
glVertex2f(300, 300); // vertex 2
glVertex2f(600, 300); // vertex 3
glVertex2f(600, 500); // vertex 4
glEnd();
glColor3f(1.0f, 1.0f, 1.0f); // If I don't put this, the whole screen become the previous color
Normally I would expect it to be full white, but I get an 50% gray. Is something with the blend function? Any clues what might be the problem?
Thanks
I am trying to show a colored quad on the 2D screen with the following code:
glColor3f(1.0f, 1.0f, 1.0f);
glBegin(GL_QUADS);
glVertex2f(300, 500); // vertex 1
glVertex2f(300, 300); // vertex 2
glVertex2f(600, 300); // vertex 3
glVertex2f(600, 500); // vertex 4
glEnd();
glColor3f(1.0f, 1.0f, 1.0f); // If I don't put this, the whole screen become the previous color
Normally I would expect it to be full white, but I get an 50% gray. Is something with the blend function? Any clues what might be the problem?
Thanks