From d7e9d913730b96a83751863ad896648488296532 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 6 Nov 2010 16:57:33 -0400 Subject: Add pattern framework, impelement checker pattern. --- libdimension/dimension/texture.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libdimension/dimension/texture.h') 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 */ -- cgit v1.2.3