[mutter] cogl: Add API to get the texture from an offscreen
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cogl: Add API to get the texture from an offscreen
- Date: Wed, 20 Jul 2016 06:28:08 +0000 (UTC)
commit c498bce9e444c665f239813d3f22b500a526b369
Author: Jonas Ådahl <jadahl gmail com>
Date: Tue May 31 15:44:22 2016 +0800
cogl: Add API to get the texture from an offscreen
https://bugzilla.gnome.org/show_bug.cgi?id=768976
cogl/cogl/cogl-framebuffer.c | 6 ++++++
cogl/cogl/cogl-offscreen.h | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl/cogl-framebuffer.c b/cogl/cogl/cogl-framebuffer.c
index 9dbd2a1..55b9e37 100644
--- a/cogl/cogl/cogl-framebuffer.c
+++ b/cogl/cogl/cogl-framebuffer.c
@@ -705,6 +705,12 @@ cogl_offscreen_new_with_texture (CoglTexture *texture)
return _cogl_offscreen_new_with_texture_full (texture, 0, 0);
}
+CoglTexture *
+cogl_offscreen_get_texture (CoglOffscreen *offscreen)
+{
+ return offscreen->texture;
+}
+
static void
_cogl_offscreen_free (CoglOffscreen *offscreen)
{
diff --git a/cogl/cogl/cogl-offscreen.h b/cogl/cogl/cogl-offscreen.h
index 9c84442..26016f5 100644
--- a/cogl/cogl/cogl-offscreen.h
+++ b/cogl/cogl/cogl-offscreen.h
@@ -167,6 +167,12 @@ COGL_DEPRECATED_FOR (cogl_object_unref)
void
cogl_offscreen_unref (void *offscreen);
+/**
+ * cogl_offscreen_get_texture: (skip)
+ */
+CoglTexture *
+cogl_offscreen_get_texture (CoglOffscreen *offscreen);
+
COGL_END_DECLS
#endif /* __COGL_OFFSCREEN_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]