Macaw OS C reference

Function gpu_buffercount

#include <macawgpu.h>
int gpu_buffercount(int buf);

Tells you how many corners a buffer holds.

Parameters

bufint
The buffer, from gpu_buffer.

Returns int

The number of corners.

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