Cogl.AttributeBuffer

g Cogl.AttributeBuffer Cogl.AttributeBuffer Cogl.Object Cogl.Object Cogl.Object->Cogl.AttributeBuffer

Subclasses:

None

Methods

Inherited:

Cogl.Object (2)

class

new_with_size (context, bytes)

Virtual Methods

None

Fields

None

Class Details

class Cogl.AttributeBuffer
Bases:

Cogl.Object

Abstract:

No

classmethod new_with_size(context, bytes)
Parameters:
Returns:

A newly allocated Cogl.AttributeBuffer. Never None.

Return type:

Cogl.AttributeBuffer

Describes a new Cogl.AttributeBuffer of size bytes to contain arrays of vertex attribute data. Afterwards data can be set using Cogl.buffer_set_data() or by mapping it into the application’s address space using Cogl.buffer_map().

The underlying storage of this buffer isn’t allocated by this function so that you have an opportunity to use the Cogl.buffer_set_update_hint() and cogl_buffer_set_usage_hint() functions which may influence how the storage is allocated. The storage will be allocated once you upload data to the buffer.

Note: You can assume this function always succeeds and won’t return None