diff options
author | Neil Roberts <neil@linux.intel.com> | 2012-02-05 21:04:14 +0100 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2012-02-07 15:25:35 +0000 |
commit | 55427a18a611a0006da1ab874dec7a93e760b21b (patch) | |
tree | 0a98b3fcb4d83e79e4cd205b0d9704ececee6d02 /cogl/cogl-pipeline-layer-state.h | |
parent | ec1bb4ce39ea0103fa0d1d408ca325922fdb7131 (diff) | |
download | cogl-55427a18a611a0006da1ab874dec7a93e760b21b.tar.gz |
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>
Diffstat (limited to 'cogl/cogl-pipeline-layer-state.h')
-rw-r--r-- | cogl/cogl-pipeline-layer-state.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cogl/cogl-pipeline-layer-state.h b/cogl/cogl-pipeline-layer-state.h index 38d82eec..7c6f7c2c 100644 --- a/cogl/cogl-pipeline-layer-state.h +++ b/cogl/cogl-pipeline-layer-state.h @@ -143,6 +143,20 @@ cogl_pipeline_set_layer_texture (CoglPipeline *pipeline, CoglTexture *texture); /** + * cogl_pipeline_get_layer_texture: + * @pipeline: A #CoglPipeline object + * @layer_index: the index of the layer + * + * Return value: the texture that was set for the given layer of the + * pipeline or %NULL if no texture was set. + * Stability: unstable + * Since: 1.10 + */ +CoglTexture * +cogl_pipeline_get_layer_texture (CoglPipeline *pipeline, + int layer_index); + +/** * cogl_pipeline_remove_layer: * @pipeline: A #CoglPipeline object * @layer_index: Specifies the layer you want to remove |