summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/texture.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-06 16:57:33 -0400
committerTavian Barnes <tavianator@gmail.com>2010-11-06 16:57:33 -0400
commitd7e9d913730b96a83751863ad896648488296532 (patch)
tree14d16fc53339b272fef7d33092dd5eb89da9d5e6 /libdimension/dimension/texture.h
parentfd741e79c56c78de91ab3cbcbeaee28eddcee2dd (diff)
downloaddimension-d7e9d913730b96a83751863ad896648488296532.tar.xz
Add pattern framework, impelement checker pattern.
Diffstat (limited to 'libdimension/dimension/texture.h')
-rw-r--r--libdimension/dimension/texture.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdimension/dimension/texture.h b/libdimension/dimension/texture.h
index 3d37aa1..98e33b8 100644
--- a/libdimension/dimension/texture.h
+++ b/libdimension/dimension/texture.h
@@ -32,14 +32,16 @@
/* Forward-declare dmnsn_pigment */
typedef struct dmnsn_pigment dmnsn_pigment;
-/* Pigment callback */
+/* Pigment callbacks */
typedef dmnsn_color dmnsn_pigment_fn(const dmnsn_pigment *pigment,
dmnsn_vector v);
+typedef void dmnsn_pigment_init_fn(dmnsn_pigment *pigment);
/* dmnsn_pigment definition */
struct dmnsn_pigment {
/* Callbacks */
dmnsn_pigment_fn *pigment_fn;
+ dmnsn_pigment_init_fn *init_fn;
dmnsn_free_fn *free_fn;
/* Transformation matrix */