Name
Cls -- clear back buffer in hardware double buffer mode (V6.0, optional)
Synopsis
int error = Cls(APTR handle, ULONG color, struct hwTagList *tags);
Function
This must clear the back buffer of the hardware double buffer in the specified display with the color specified in the second parameter. The color is specified as a 24-bit RGB value.

Cls() is an optional API and must only be implemented if HWSDAFLAGS_DOUBLEBUFFERADAPTER has been passed to hw_SetDisplayAdapter(). See hw_SetDisplayAdapter for details.

Inputs
handle
display handle returned by OpenDisplay()
color
color to use for clearing
tags
reserved for future use (currently NULL)
Results
error
error code or 0 for success

Show TOC