I'm trying to create a flashbang for my HL mod, but I'm not quite sure how to do this. I know which functions I need (I think), but I don't know how to use them properly.
I want to read in all the pixels on the screen, invert it, and overlay that over whatever is on the screen, with the alpha slowly decreasing. Once its at 0, I want to stop doing this.
This'd sorta be like the Tom Clancy rainbow six flashbang.
glReadPixels
glDrawPixels
glCopyPixles
I think I need those three, but how do I modify the alpha?