summaryrefslogtreecommitdiff
path: root/gdk/gdkinternals.h
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-11-22 09:39:18 -0800
committerJasper St. Pierre <jstpierre@mecheye.net>2014-11-22 09:40:10 -0800
commit37697f18179273c96204ebd9b53eee84cbf5204e (patch)
treefa4f965983501a1aefa894e4e21fa24ae9f9aacc /gdk/gdkinternals.h
parent28846536cbe01090844cdb35001fbc2834a1118b (diff)
downloadgtk+-37697f18179273c96204ebd9b53eee84cbf5204e.tar.gz
gdkgl: Use a GdkTexturedQuad struct to paint quads
We'll soon have a new function that paints multiple quads.
Diffstat (limited to 'gdk/gdkinternals.h')
-rw-r--r--gdk/gdkinternals.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index ca89811e4d..d945a19a6e 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -350,12 +350,16 @@ 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);
+
+typedef struct {
+ float x1, y1, x2, y2;
+ float u1, v1, u2, v2;
+} GdkTexturedQuad;
+
void gdk_gl_texture_quad (GdkGLContext *paint_context,
guint texture_target,
- float x1, float y1,
- float x2, float y2,
- float u1, float v1,
- float u2, float v2);
+ GdkTexturedQuad *quad);
+
void gdk_cairo_surface_mark_as_direct (cairo_surface_t *surface,
GdkWindow *window);
cairo_region_t *gdk_cairo_region_from_clip (cairo_t *cr);