Macaw OS C reference

Module Drawing a corner at a time

#include <macawgpu.h>

Functions

gpu_begin
Starts drawing shapes a corner at a time.
gpu_color
Sets the colour of the corners you send after it, for drawing without a texture.
gpu_colorex
Sets the colour of the next corners, and how bright they are.
gpu_texcoord
Sets which place on the texture the next corner shows.
gpu_normal
Sets which way the surface faces at the next corners, so lighting knows how much light falls on it.
gpu_vertex
Sends a corner (a vertex), with the colour, texture place and normal set last.
gpu_vertex4
Sends a corner with a fourth number, w, as OpenGL's glVertex4 does.
gpu_done
Finishes the shapes gpu_begin started and draws them.
gpu_end
The same as gpu_done, named as in OpenGL.