summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
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 */