Macaw OS C reference

Function gpu_drawelements

#include <macawgpu.h>
void gpu_drawelements(const char *mode, int buf, int indices);

Draws the corners of a buffer that an index buffer picks, in the index buffer's order.

Parameters

modeconst char *
What the corners make, as for gpu_begin, like "triangles".
bufint
The buffer, from gpu_buffer.
indicesint
The index buffer, from gpu_indices. A corner the buffer hasn't got is an error.

In Buffers, with gpu_buffer, gpu_bufferset, gpu_buffercount, gpu_freebuffer, gpu_indices, gpu_freeindices, gpu_drawarrays.