Macaw OS C reference

Function gpu_begin

#include <macawgpu.h>
void gpu_begin(const char *mode);

Starts drawing shapes a corner at a time. Send the corners with gpu_vertex, then call gpu_done.

Parameters

modeconst char *
What the corners make: "triangles", "tristrip", "trifan", "quads", "quadstrip", "polygon", "lines", "linestrip", "lineloop" or "points".

In Drawing a corner at a time, with gpu_color, gpu_colorex, gpu_texcoord, gpu_normal, gpu_vertex, gpu_vertex4, gpu_done, gpu_end.