diff options
Diffstat (limited to 'libdimension/dimension/texture.h')
-rw-r--r-- | libdimension/dimension/texture.h | 4 |
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 */ |