mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
fbc01d659c
commit
60daaff724
@ -44,9 +44,6 @@ struct _CoglIndices
|
||||
int immutable_ref;
|
||||
};
|
||||
|
||||
CoglIndexArray *
|
||||
_cogl_indices_get_array (CoglIndices *indices);
|
||||
|
||||
CoglIndices *
|
||||
_cogl_indices_immutable_ref (CoglIndices *indices);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user