| Cogl 2.0 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
CoglVertexArray * cogl_vertex_array_new (gsize bytes,const void *data); gboolean cogl_is_vertex_array (void *object);
CoglVertexArray * cogl_vertex_array_new (gsize bytes,const void *data);
Declares a new CoglVertexArray 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_vertex_array (void *object);
Gets whether the given object references a CoglVertexArray.
|
A CoglObject |
Returns : |
TRUE if the handle references a CoglVertexArray,
FALSE otherwise
|
Since 1.4
Stability Level: Unstable