diff options
author | Robert Bragg <robert@linux.intel.com> | 2011-12-12 18:20:00 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2012-01-05 20:57:52 +0000 |
commit | fc88e166f074ebb3a339c80234d8aaa3891541b9 (patch) | |
tree | 26bad6e65d410f96e643e3ea3ba636b9d36f849c /cogl/cogl-sub-texture.c | |
parent | 3bc70687ac92b237febeb0f369394e8e6bea9d53 (diff) | |
download | cogl-fc88e166f074ebb3a339c80234d8aaa3891541b9.tar.gz |
sub-texture: Exposes a getter for parent texture
This adds a cogl_sub_texture_get_parent getter for the parent of a
CoglSubTexture.
Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-sub-texture.c')
-rw-r--r-- | cogl/cogl-sub-texture.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cogl/cogl-sub-texture.c b/cogl/cogl-sub-texture.c index d72c7bad..3967ecd6 100644 --- a/cogl/cogl-sub-texture.c +++ b/cogl/cogl-sub-texture.c @@ -256,6 +256,12 @@ cogl_sub_texture_new (CoglContext *ctx, return _cogl_sub_texture_handle_new (sub_tex); } +CoglTexture * +cogl_sub_texture_get_parent (CoglSubTexture *sub_texture) +{ + return sub_texture->next_texture; +} + static int _cogl_sub_texture_get_max_waste (CoglTexture *tex) { |