Macaw OS C reference

Function gpu_clear

#include <macawgpu.h>
void gpu_clear(const char *what);

Fills the picture with the clear colour, empties the depth buffer, or both, inside the viewport. Do it at the start of each frame. It also starts gpu_stats's counts again.

Parameters

whatconst char *
"color" for the picture, "depth" for the depth buffer, or NULL (or "color depth") for both.

In State, with gpu_enable, gpu_disable, gpu_isenabled, gpu_depthmask, gpu_cullface, gpu_frontface, gpu_viewport, gpu_clearcolor, gpu_reset.