I don't want to fade to white.
I want to have what they saw BEFORE the flashbang (except inverted) slowly fade into what the current view is
EDIT:
Code:
for (int x=0; x<30; x++)
{
for (int y=0; y<30; y++)
{
GLfloat pixel[33*3*33*3];
glReadPixels(x, y, 1, 1, GL_RGB, GL_FLOAT,(GLvoid *)pixel);
pixel[0] = 255 - pixel[0];
pixel[1] = 255 - pixel[1];
pixel[2] = 255 - pixel[2];
glRasterPos2i (x, y);
glDrawPixels (1, 1, GL_RGB, GL_FLOAT, (GLvoid *)pixel);
}
}
return;
Thats my attempt to do the invert part and then draw it, but that doesn't do anything to the screen. Whats wrong with it?
Also, there must be a way to do it all at once instead of pixel by pixel... GL_BITMAP, probably, but I have no idea how it works.