summaryrefslogtreecommitdiff
path: root/gdk/gdkinternals.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2014-11-05 15:42:06 +0100
committerAlexander Larsson <alexl@redhat.com>2014-11-06 12:24:43 +0100
commit10a44e8f7ad4dd4fd4dd1ba3ef1e5f08ffcc6f87 (patch)
tree5eee356187688f27c05f3e4ac4e4089ff03fbc0c /gdk/gdkinternals.h
parent3c34ca3405f852b554bc05e07e460dbe9b9eae59 (diff)
downloadgtk+-10a44e8f7ad4dd4fd4dd1ba3ef1e5f08ffcc6f87.tar.gz
Add gdk_gl_texture_quad() helper
Right now this just centralizes the glBegin/glEnd code, but this will be replaced with buffer objects later.
Diffstat (limited to 'gdk/gdkinternals.h')
-rw-r--r--gdk/gdkinternals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index bb7b71a97e..69be7047fe 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -341,6 +341,10 @@ gboolean _gdk_cairo_surface_extents (cairo_surface_t *surface,
GdkRectangle *extents);
void gdk_gl_texture_from_surface (cairo_surface_t *surface,
cairo_region_t *region);
+void gdk_gl_texture_quad (float x1, float y1,
+ float x2, float y2,
+ float u1, float v1,
+ float u2, float v2);
void gdk_cairo_surface_mark_as_direct (cairo_surface_t *surface,
GdkWindow *window);
cairo_region_t *gdk_cairo_region_from_clip (cairo_t *cr);