summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/map.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-23 13:14:16 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-23 13:14:16 -0500
commitd6cfecdc224e95f1379f918d642074eada40627f (patch)
treea51324383ad8f1cf5d968ba41690d1f7ac7cbad5 /libdimension/dimension/map.h
parentb49cf79b57af160ba190fea76d7143cce3428985 (diff)
downloaddimension-d6cfecdc224e95f1379f918d642074eada40627f.tar.xz
Implement pigment maps.
Diffstat (limited to 'libdimension/dimension/map.h')
-rw-r--r--libdimension/dimension/map.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libdimension/dimension/map.h b/libdimension/dimension/map.h
index 1cd0f55..5e7134d 100644
--- a/libdimension/dimension/map.h
+++ b/libdimension/dimension/map.h
@@ -73,4 +73,11 @@ size_t dmnsn_map_size(const dmnsn_map *map);
void dmnsn_evaluate_map(const dmnsn_map *map, double n,
double *val, void *obj1, void *obj2);
+/**
+ * Apply a callback to each element of a map.
+ * @param[in,out] map The map.
+ * @param[in] callback The callback to apply to the elements.
+ */
+void dmnsn_map_apply(dmnsn_map *map, dmnsn_callback_fn *callback);
+
#endif /* DIMENSION_MAP_H */