Table of Contents

 
ClearScreen
 

Purpose

Clears the main surface

 

Protoype

void CVideo::ClearScreen ()
 

Description

This function does a fast fill of the screen or surface using SDL_FillRect(), which essentially wipes out anything visible on the screen. A common practice before drawing the next frame.

 

Use

CVideo video;

video.ClearScreen();

 

Prev: CaptureImage
Next: DelayFPS