Macaw OS C reference

Function gpu_bufferset

#include <macawgpu.h>
void gpu_bufferset(int buf, const float *numbers, int count);

Replaces what's in a buffer, keeping its layout. The number of corners can change.

Parameters

bufint
The buffer, from gpu_buffer.
numbersconst float *
An array of floats, as for gpu_buffer.
countint
How many floats there are in all, a whole number of corners.

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