Make _cogl_pipeline_get_layer_texture public

There was no other way to get a pointer to the texture attached to a
pipeline layer apart from the using the CoglMaterial API but I think
this was just an oversight so we should add this in. It is already
maked in the sections file for the gtk-doc.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Neil Roberts
2012-02-05 21:04:14 +01:00
parent ec1bb4ce39
commit 55427a18a6
5 changed files with 21 additions and 13 deletions

View File

@ -121,8 +121,8 @@ _cogl_pipeline_layer_get_texture_real (CoglPipelineLayer *layer)
}
CoglTexture *
_cogl_pipeline_get_layer_texture (CoglPipeline *pipeline,
int layer_index)
cogl_pipeline_get_layer_texture (CoglPipeline *pipeline,
int layer_index)
{
CoglPipelineLayer *layer =
_cogl_pipeline_get_layer (pipeline, layer_index);
@ -1418,8 +1418,6 @@ cogl_pipeline_set_layer_matrix (CoglPipeline *pipeline,
}
}
/* FIXME: deprecate and replace with
* cogl_pipeline_get_layer_texture() instead. */
CoglTexture *
_cogl_pipeline_layer_get_texture (CoglPipelineLayer *layer)
{