diff options
author | Chris Want <cwant@ualberta.ca> | 2006-11-22 18:53:46 +0300 |
---|---|---|
committer | Chris Want <cwant@ualberta.ca> | 2006-11-22 18:53:46 +0300 |
commit | 0b0c8c92441aeb0a21aec52de8689e8000495e0e (patch) | |
tree | cd8d830fee68535c88547c7ab0a1a34d3bde90e9 /release/plugins/texture/clouds2.c | |
parent | bb7ad80269d76cba98a90c8bf95e2cc47f88820c (diff) |
=Texture Plugins=
Added a callback instance_init() so that any particular instance of a
texture plugin can initialize data. Updated the clouds2 and tile example
plugins to have a (dummy) call back.
Diffstat (limited to 'release/plugins/texture/clouds2.c')
-rw-r--r-- | release/plugins/texture/clouds2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/release/plugins/texture/clouds2.c b/release/plugins/texture/clouds2.c index 5f77dba90fe..69f890e4df3 100644 --- a/release/plugins/texture/clouds2.c +++ b/release/plugins/texture/clouds2.c @@ -77,6 +77,7 @@ float result[8]; float cfra; int plugin_tex_doit(int, Cast*, float*, float*, float*); +void plugin_instance_init(Cast*); /* ******************** Fixed functions ***************** */ @@ -94,6 +95,14 @@ void plugin_init(void) } +/* + * initialize any data for a particular instance of + * the plugin here + */ +void plugin_instance_init(Cast *cast) +{ +} + /* this function should not be changed: */ void plugin_getinfo(PluginInfo *info) @@ -110,6 +119,7 @@ void plugin_getinfo(PluginInfo *info) info->init= plugin_init; info->tex_doit= (TexDoit) plugin_tex_doit; info->callback= plugin_but_changed; + info->instance_init= (void (*)(void *)) plugin_instance_init; } /* ********************* the texture ******************** */ |