diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-05-30 15:48:29 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-05-30 15:48:29 -0400 |
commit | 45e219eac23ea4a8181f68300fed693d9ac361a0 (patch) | |
tree | 06b72b3ca9a97b1352537836a2a42af7033ae6b1 /libdimension/dimension/gl.h | |
parent | f61c7c75c3c7ff4a329315700d3efa1d77bafa6d (diff) | |
download | dimension-45e219eac23ea4a8181f68300fed693d9ac361a0.tar.xz |
canvas: Use pool.
Diffstat (limited to 'libdimension/dimension/gl.h')
-rw-r--r-- | libdimension/dimension/gl.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/libdimension/dimension/gl.h b/libdimension/dimension/gl.h index e276228..8e64ba6 100644 --- a/libdimension/dimension/gl.h +++ b/libdimension/dimension/gl.h @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2010 Tavian Barnes <tavianator@tavianator.com> * + * Copyright (C) 2009-2014 Tavian Barnes <tavianator@tavianator.com> * * * * This file is part of The Dimension Library. * * * @@ -32,18 +32,16 @@ int dmnsn_gl_optimize_canvas(dmnsn_canvas *canvas); /** * Write canvas to GL framebuffer. - * @param[in] canvas The canvas to write. + * @param[in] canvas The canvas to draw. * @return 0 on success, non-zero on failure. */ int dmnsn_gl_write_canvas(const dmnsn_canvas *canvas); /** * Read a canvas from a GL framebuffer. - * @param[in] x0 The \a x screen coordinate to start copying from. - * @param[in] y0 The \a y screen coordinate to start copying from. - * @param[in] width The width of the read area. - * @param[in] height The height of the read area. - * @return The allocated canvas, or NULL on failure. + * @param[in] canvas The canvas to write to. + * @param[in] x0 The \a x screen coordinate to start copying from. + * @param[in] y0 The \a y screen coordinate to start copying from. + * @return 0 on success, non-zero on failure. */ -dmnsn_canvas *dmnsn_gl_read_canvas(size_t x0, size_t y0, - size_t width, size_t height); +int dmnsn_gl_read_canvas(dmnsn_canvas *canvas, size_t x0, size_t y0); |