Cogl.IndexBuffer.new

function new(context: Cogl.Context, bytes: Number(gsize)): Cogl.IndexBuffer {
    // Gjs wrapper for cogl_index_buffer_new()
}
  

Declares a new Cogl.IndexBuffer of @size bytes to contain vertex indices. Once declared, data can be set using Cogl.buffer_set_data or by mapping it into the application's address space using Cogl.buffer_map.

Since 1.4

context

A Cogl.Context

bytes

The number of bytes to allocate for vertex attribute data.

Returns

A newly allocated Cogl.IndexBuffer