Top | ![]() |
![]() |
![]() |
![]() |
CoglAttributeBuffer: Buffers of vertex attributesCoglAttributeBuffer: Buffers of vertex attributes — Functions for creating and manipulating attribute buffers |
CoglAttributeBuffer * cogl_attribute_buffer_new (CoglContext *context
,gsize bytes
,const void *data
);
Declares a new CoglAttributeBuffer of size
bytes to contain arrays of vertex
attribute data. 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()
.
If data
isn't NULL
then size
bytes will be read from data
and
immediately copied into the new buffer.
context |
A CoglContext |
|
bytes |
The number of bytes to allocate for vertex attribute data. |
|
data |
An optional pointer to vertex data to upload immediately. |
Since 1.4
Stability Level: Unstable
gboolean
cogl_is_attribute_buffer (void *object
);
Gets whether the given object references a CoglAttributeBuffer.
Since 1.4
Stability Level: Unstable