## CoglAttributeBuffer: Buffers of vertex attributes CoglAttributeBuffer: Buffers of vertex attributes — Functions for creating and manipulating attribute buffers |

## Synopsis

                        CoglAttributeBuffer;
    CoglAttributeBuffer * cogl_attribute_buffer_new         (gsize bytes,
                                                             const void *data);
    gboolean            cogl_is_attribute_buffer            (void *object);

## Description

FIXME

## Details

### CoglAttributeBuffer

    typedef struct {
      CoglBuffer _parent;
    } CoglAttributeBuffer;

### cogl_attribute_buffer_new ()

    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.

`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

### cogl_is_attribute_buffer ()

    gboolean            cogl_is_attribute_buffer            (void *object);

Gets whether the given object references a CoglAttributeBuffer.

`object` : | A CoglObject
Returns : | `TRUE` if the handle references a CoglAttributeBuffer, `FALSE` otherwise

Since 1.4

Stability Level: Unstable