Original Post
For some reason glColor isn''t responding in my game. No matter what color I give it. It gives me semi-transparent black. Below is the sorce as it is. Even if I set glColor4f to 1.0f, 1.0f, 1.0f, 1.0f I still get semi transparent black. I took the code out of here and plugged it into NEHE lesson 2 to make sure it wasn''t my drivers. The polys came out correctly. However this doesn''t seem to want to be anything but semi-transparent black.
Ideas? Solutions?
Thanks,
Steven
glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glColor4f(0.1f, 0.2f, 0.3f, 0.5f); glBegin(GL_QUADS); glVertex2d(256.0f, 144.0f); glVertex2d(272.0f, 144.0f); glVertex2d(272.0f, 142.0f); glVertex2d(256.0f, 142.0f); glVertex2d(272.0f, 168.0f); glVertex2d(380.0f, 168.0f); glVertex2d(380.0f, 0.0f); glVertex2d(272.0f, 0.0f); glEnd();
