diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-01-17 00:32:26 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-01-17 11:56:47 -0500 |
commit | b366ea84a76e8af1e8dd2e699e951c36afc26d28 (patch) | |
tree | 5c82fb8b21d2f83493ce51ffd1f6e4604cf101fa /gdk/gdktexture.h | |
parent | e7cab2bc0ceab2d3d44eb181dbedfecbdf98416a (diff) | |
download | gtk+-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/gdktexture.h')
-rw-r--r-- | gdk/gdktexture.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdk/gdktexture.h b/gdk/gdktexture.h index fe957c0915..4f3ead2321 100644 --- a/gdk/gdktexture.h +++ b/gdk/gdktexture.h @@ -26,6 +26,7 @@ #include <gdk/gdkversionmacros.h> #include <gdk/gdktypes.h> #include <gdk-pixbuf/gdk-pixbuf.h> +#include <gdk/gdkglcontext.h> G_BEGIN_DECLS @@ -56,6 +57,14 @@ GdkTexture * gdk_texture_new_from_file (GFile GError **error); GDK_AVAILABLE_IN_3_94 +GdkTexture * gdk_texture_new_for_gl (GdkGLContext *context, + int id, + int width, + int height, + GDestroyNotify destroy, + gpointer data); + +GDK_AVAILABLE_IN_3_94 int gdk_texture_get_width (GdkTexture *texture); GDK_AVAILABLE_IN_3_94 int gdk_texture_get_height (GdkTexture *texture); |