diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-10-19 13:59:24 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-10-30 18:11:22 -0400 |
commit | 8e3a7158ecae541692826e7b5998c8ffc810173a (patch) | |
tree | beda4f9f8604f77d0513d5fb02b7ddf53d203d09 /libdimension/dimension/canvas.h | |
parent | e9810a7b1aae15320e58371b657a2f963562834d (diff) | |
download | dimension-8e3a7158ecae541692826e7b5998c8ffc810173a.tar.xz |
Make API more consistent.
Object methods should be dmnsn_<object>_<fn>().
Diffstat (limited to 'libdimension/dimension/canvas.h')
-rw-r--r-- | libdimension/dimension/canvas.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libdimension/dimension/canvas.h b/libdimension/dimension/canvas.h index 39e159b..48a64c1 100644 --- a/libdimension/dimension/canvas.h +++ b/libdimension/dimension/canvas.h @@ -84,7 +84,7 @@ void dmnsn_delete_canvas(dmnsn_canvas *canvas); * @param[in,out] canvas The canvas to optimize. * @param[in] optimizer The optimizer to use. */ -void dmnsn_optimize_canvas(dmnsn_canvas *canvas, +void dmnsn_canvas_optimize(dmnsn_canvas *canvas, dmnsn_canvas_optimizer optimizer); /* Pixel accessors */ @@ -97,7 +97,7 @@ void dmnsn_optimize_canvas(dmnsn_canvas *canvas, * @return The color of the canvas at (\p x, \p y). */ DMNSN_INLINE dmnsn_color -dmnsn_get_pixel(const dmnsn_canvas *canvas, size_t x, size_t y) +dmnsn_canvas_get_pixel(const dmnsn_canvas *canvas, size_t x, size_t y) { dmnsn_assert(x < canvas->width && y < canvas->height, "Canvas access out of bounds."); @@ -111,12 +111,12 @@ dmnsn_get_pixel(const dmnsn_canvas *canvas, size_t x, size_t y) * @param[in] y The y coordinate of the pixel. * @param[in] color The color to set the pixel at (\p x, \p y) to. */ -void dmnsn_set_pixel(dmnsn_canvas *canvas, size_t x, size_t y, - dmnsn_color color); +void dmnsn_canvas_set_pixel(dmnsn_canvas *canvas, size_t x, size_t y, + dmnsn_color color); /** * Clear a canvas uniformly with a given color. * @param[in,out] canvas The canvas to erase. * @param[in] color The color to paint it with. */ -void dmnsn_clear_canvas(dmnsn_canvas *canvas, dmnsn_color color); +void dmnsn_canvas_clear(dmnsn_canvas *canvas, dmnsn_color color); |