summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/patterns.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-14 21:20:43 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-14 21:20:43 -0500
commit8fe33a340b8979a73fa84f201c15519a9b5d0266 (patch)
tree12cdbb1c1b9a48f533ab36980602785be1e1deeb /libdimension/dimension/patterns.h
parent20a55aa78050d94b187d4edfaac91ea00efea505 (diff)
downloaddimension-8fe33a340b8979a73fa84f201c15519a9b5d0266.tar.xz
Document libdimension with Doxygen.
Diffstat (limited to 'libdimension/dimension/patterns.h')
-rw-r--r--libdimension/dimension/patterns.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/libdimension/dimension/patterns.h b/libdimension/dimension/patterns.h
index cd4aa35..5dd44bf 100644
--- a/libdimension/dimension/patterns.h
+++ b/libdimension/dimension/patterns.h
@@ -18,14 +18,27 @@
* <http://www.gnu.org/licenses/>. *
*************************************************************************/
-/*
- * Custom patterns
+/**
+ * @file
+ * Pre-defined patterns.
*/
#ifndef DIMENSION_PATTERNS_H
#define DIMENSION_PATTERNS_H
-dmnsn_pattern *dmnsn_new_checker_pattern();
+/**
+ * A checker pattern. The pattern is composed of tesselating unit cubes
+ * alternating between 0 and 1.
+ * @return A checker pattern.
+ */
+dmnsn_pattern *dmnsn_new_checker_pattern(void);
+
+/**
+ * A gradient. The value starts at 0 at the origin, and goes linearly to 1 in
+ * the direction of \p orientation, then repeats after a distance of 1.
+ * @param[in] orientation The direction of the gradient.
+ * @return A gradient pattern.
+ */
dmnsn_pattern *dmnsn_new_gradient_pattern(dmnsn_vector orientation);
#endif /* DIMENSION_PATTERNS_H */