summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-02 18:12:16 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-02 18:12:16 +0000
commita0571c84673f01b05e6edeb901cca8ff5ae9a023 (patch)
tree77e0102f351c2933bdda6f6811504afdb5b0ea53 /libdimension/dimension
parenta7b2355c6424fff9093d238c973fb09d801da934 (diff)
downloaddimension-a0571c84673f01b05e6edeb901cca8ff5ae9a023.tar.xz
Implement dmnsn_gl_read_canvas.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/gl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdimension/dimension/gl.h b/libdimension/dimension/gl.h
index e27c418..f7de782 100644
--- a/libdimension/dimension/gl.h
+++ b/libdimension/dimension/gl.h
@@ -28,10 +28,11 @@
#include <stdio.h>
-/* Write canvas to GL framebuffer. Returns 0 on success, nonzero on failure */
+/* Write canvas to GL framebuffer. Returns 0 on success, nonzero on failure. */
int dmnsn_gl_write_canvas(const dmnsn_canvas *canvas);
/* Read a canvas from a GL framebuffer. Returns NULL on failure. */
-dmnsn_canvas *dmnsn_gl_read_canvas();
+dmnsn_canvas *dmnsn_gl_read_canvas(unsigned int x0, unsigned int y0,
+ unsigned int width, unsigned int height);
#endif /* DIMENSION_GL_H */