Cogl 2.0 Reference Manual | ||||
---|---|---|---|---|
Top | Description |
CoglAttributeBuffer: Buffers of vertex attributesCoglAttributeBuffer: Buffers of vertex attributes — Functions for creating and manipulating attribute buffers |
CoglAttributeBuffer; CoglAttributeBuffer * cogl_attribute_buffer_new (gsize bytes
,const void *data
); gboolean cogl_is_attribute_buffer (void *object
);
CoglAttributeBuffer * cogl_attribute_buffer_new (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.
|
The number of bytes to allocate for vertex attribute 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.
|
A CoglObject |
Returns : |
TRUE if the handle references a CoglAttributeBuffer,
FALSE otherwise |
Since 1.4
Stability Level: Unstable