indices: Makes cogl_indices_get_array public

This makes the previously internal only _cogl_indices_get_array API
public as cogl_indices_get_array (Though marked as experimental)
This commit is contained in:
Robert Bragg 2010-11-16 08:41:29 +00:00
parent fbc01d659c
commit 60daaff724
4 changed files with 5 additions and 5 deletions

View File

@ -44,9 +44,6 @@ struct _CoglIndices
int immutable_ref;
};
CoglIndexArray *
_cogl_indices_get_array (CoglIndices *indices);
CoglIndices *
_cogl_indices_immutable_ref (CoglIndices *indices);

View File

@ -96,7 +96,7 @@ cogl_indices_new (CoglIndicesType type,
}
CoglIndexArray *
_cogl_indices_get_array (CoglIndices *indices)
cogl_indices_get_array (CoglIndices *indices)
{
return indices->array;
}

View File

@ -55,6 +55,9 @@ cogl_indices_new_for_array (CoglIndicesType type,
CoglIndexArray *array,
gsize offset);
CoglIndexArray *
cogl_indices_get_array (CoglIndices *indices);
CoglIndicesType
cogl_indices_get_type (CoglIndices *indices);

View File

@ -770,7 +770,7 @@ _cogl_draw_indexed_vertex_attributes_array_real (CoglVerticesMode mode,
_COGL_GET_CONTEXT (ctx, NO_RETVAL);
buffer = COGL_BUFFER (_cogl_indices_get_array (indices));
buffer = COGL_BUFFER (cogl_indices_get_array (indices));
base = _cogl_buffer_bind (buffer, COGL_BUFFER_BIND_TARGET_INDEX_ARRAY);
array_offset = cogl_indices_get_offset (indices);
index_size = sizeof_index_type (cogl_indices_get_type (indices));