Macaw OS C reference

Module State

#include <macawgpu.h>

Functions

gpu_enable
Switches a feature of the chip on.
gpu_disable
Switches a feature of the chip off.
gpu_isenabled
Tells you whether a feature is switched on.
gpu_depthmask
Sets whether drawing writes to the depth buffer, the hidden picture of how far away each pixel is.
gpu_cullface
Picks which side of each triangle "cull_face" skips.
gpu_frontface
Says which way round a triangle's corners go, on the screen, when you're looking at its front.
gpu_viewport
Makes drawing go into one part of the window, like a smaller window inside it.
gpu_clearcolor
Sets the colour gpu_clear fills the picture with.
gpu_clear
Fills the picture with the clear colour, empties the depth buffer, or both, inside the viewport.
gpu_reset
Puts all of the chip's settings back how they started: features, matrices, lights, fog, the texture and the viewport.