Cogl.buffer_set_data

function buffer_set_data(buffer: Cogl.Buffer, offset: Number(gsize), data: void, size: Number(gsize)): Cogl.Bool {
    // Gjs wrapper for cogl_buffer_set_data()
}
  

Updates part of the buffer with new data from data. Where to put this new data is controlled by offset and offset + data should be less than the buffer size.

Since 1.2

buffer

a buffer object

offset

destination offset (in bytes) in the buffer

data

a pointer to the data to be copied into the buffer

size

number of bytes to copy

Returns

true is the operation succeeded, false otherwise