Very simple question here
I’m trying to draw a transparent gray rectangle over the entire screen
This draws the gray rectangle:
glColor3f(.2f, .2f, .2f);
glRecti(0, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT);
glColor3f(1f, 1f, 1f);
Now how do I make it transparent?
Adding this to the front did nothing:
glAlphaFunc(GL_ALWAYS, .5f);
Thanks