summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-04-27 14:00:33 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-04-27 14:00:33 -0400
commit12eeb9524aa9421c03f253ab6161634bec66793b (patch)
tree6d1c20e3f27bc76c9b1c30a5980c6e2de3de8f75 /libdimension/dimension
parent3f949f8a9705972a4b61532602814b5b47d1a328 (diff)
downloaddimension-12eeb9524aa9421c03f253ab6161634bec66793b.tar.xz
gl: Make drawing faster by using a better pixel format.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/canvas.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libdimension/dimension/canvas.h b/libdimension/dimension/canvas.h
index 2000141..ba549ad 100644
--- a/libdimension/dimension/canvas.h
+++ b/libdimension/dimension/canvas.h
@@ -83,6 +83,17 @@ void dmnsn_delete_canvas(dmnsn_canvas *canvas);
void dmnsn_canvas_optimize(dmnsn_canvas *canvas,
const dmnsn_canvas_optimizer *optimizer);
+/**
+ * Find a canvas optimizer by its callback.
+ * @param[in] canvas The canvas to check.
+ * @param[in] optimizer_fn The callback to search for for.
+ * @return A pointer to the canvas optimizer with the callback \p optimizer_fn,
+ * or NULL if none is found.
+ */
+dmnsn_canvas_optimizer *
+dmnsn_canvas_find_optimizer(const dmnsn_canvas *canvas,
+ dmnsn_canvas_optimizer_fn *optimizer_fn);
+
/* Pixel accessors */
/**