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;
|
int immutable_ref;
|
||||||
};
|
};
|
||||||
|
|
||||||
CoglIndexArray *
|
|
||||||
_cogl_indices_get_array (CoglIndices *indices);
|
|
||||||
|
|
||||||
CoglIndices *
|
CoglIndices *
|
||||||
_cogl_indices_immutable_ref (CoglIndices *indices);
|
_cogl_indices_immutable_ref (CoglIndices *indices);
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ cogl_indices_new (CoglIndicesType type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
CoglIndexArray *
|
CoglIndexArray *
|
||||||
_cogl_indices_get_array (CoglIndices *indices)
|
cogl_indices_get_array (CoglIndices *indices)
|
||||||
{
|
{
|
||||||
return indices->array;
|
return indices->array;
|
||||||
}
|
}
|
||||||
|
@ -55,6 +55,9 @@ cogl_indices_new_for_array (CoglIndicesType type,
|
|||||||
CoglIndexArray *array,
|
CoglIndexArray *array,
|
||||||
gsize offset);
|
gsize offset);
|
||||||
|
|
||||||
|
CoglIndexArray *
|
||||||
|
cogl_indices_get_array (CoglIndices *indices);
|
||||||
|
|
||||||
CoglIndicesType
|
CoglIndicesType
|
||||||
cogl_indices_get_type (CoglIndices *indices);
|
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);
|
_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);
|
base = _cogl_buffer_bind (buffer, COGL_BUFFER_BIND_TARGET_INDEX_ARRAY);
|
||||||
array_offset = cogl_indices_get_offset (indices);
|
array_offset = cogl_indices_get_offset (indices);
|
||||||
index_size = sizeof_index_type (cogl_indices_get_type (indices));
|
index_size = sizeof_index_type (cogl_indices_get_type (indices));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user