summaryrefslogtreecommitdiff
path: root/gdk/gdktextureprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-17 00:32:26 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-01-17 11:56:47 -0500
commitb366ea84a76e8af1e8dd2e699e951c36afc26d28 (patch)
tree5c82fb8b21d2f83493ce51ffd1f6e4604cf101fa /gdk/gdktextureprivate.h
parente7cab2bc0ceab2d3d44eb181dbedfecbdf98416a (diff)
downloadgtk+-b366ea84a76e8af1e8dd2e699e951c36afc26d28.tar.gz
gdk: Add a gl texture implementation
This will be used to pass a GL textures from the application (or rather, GtkGLArea) down to the GSK GL renderer.
Diffstat (limited to 'gdk/gdktextureprivate.h')
-rw-r--r--gdk/gdktextureprivate.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk/gdktextureprivate.h b/gdk/gdktextureprivate.h
index f9e5fbe908..6aa96d16c3 100644
--- a/gdk/gdktextureprivate.h
+++ b/gdk/gdktextureprivate.h
@@ -44,6 +44,13 @@ void gdk_texture_clear_render_data (GdkTexture
gpointer gdk_texture_get_render_data (GdkTexture *self,
gpointer key);
+#define GDK_TYPE_GL_TEXTURE (gdk_gl_texture_get_type ())
+
+G_DECLARE_FINAL_TYPE (GdkGLTexture, gdk_gl_texture, GDK, GL_TEXTURE, GdkTexture)
+
+GdkGLContext * gdk_gl_texture_get_context (GdkGLTexture *self);
+int gdk_gl_texture_get_id (GdkGLTexture *self);
+
G_END_DECLS
#endif /* __GDK_TEXTURE_PRIVATE_H__ */