Table of Contents | ||||||
|
||||||
FadeScreenOut | ||||||
Purpose Fades out the entire screen |
||||||
Protoype void CVideo::FadeScreenOut (int i_base = SCREEN_OPAQUE, int i_step = 5, RGB_SET rgb_fade = RGB_SET(0,0,0)) |
||||||
Parameters
|
||||||
Description This function causes the entire screen to fade to a certain level, defined by the base alpha value. The fade out function takes a positive step value becuase the fade is actually being done by a colored surface the size of the screen. So while the screen is seen to be fading out, it's actually the surface fading in. You can control the speed of the fade by using the step value, and you can set the color of the fade by using rgb triple values. |
||||||
Use CVideo video; // fade out the screen to red video.FadeScreenOut(SCREEN_OPAQUE, 20, RGB_SET(255,0,0)); |
||||||
|
||||||
|