cdCanvasClear

Definition: include pGUI.e

cdCanvasClear(cdCanvas hCdCanvas)
Description: Clears the active canvas using the current background color.

The function cdClear() is eqivalent to cdCanvasClear(cdActiveCanvas()).

This action is interpreted very differently by each driver.
Many drivers simply draw a rectangle with the current background color.
It is not necessary to call cdClear when the canvas has just been created, as at this moment it is already clean (CD_WHITE), unless you set a different background colour.
Most file-based drivers do not implement this function.