Overview
Members
Chapter
Previous
Next
|
|
|
|
NAME: FadeToBlack.
PURPOSE: Fades the screen to black. This function works for all graphics modes(NOTE: it is using the older FadeOut() function for 8bpp modes). It uses software alpha blending to accomplish the fade therefore it should work on all graphics cards. It makes a temp copy of the front buffer then alpha blends different shades to the back buffer then flips it to the front buffer.
INPUT: duration - the amount of time for the entire fade in milliseconds. In 8bpp this does not hold true. Good values seem to be between 500-2000;
RETURNS: nothing.
NOTES: I noticed that this only works if you have your window style set to WS_POPUP. I'll have to fix it later. -John Hebert.