Macaw OS C reference

Function gpu_depthmask

#include <macawgpu.h>
void gpu_depthmask(int on);

Sets whether drawing writes to the depth buffer, the hidden picture of how far away each pixel is. Turn it off while you draw see-through things.

Parameters

onint
1 to write depths (how it starts), 0 to leave the depth buffer alone.

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