diff options
Diffstat (limited to 'release/plugins/texture')
-rw-r--r-- | release/plugins/texture/clouds2.c | 10 | ||||
-rw-r--r-- | release/plugins/texture/tiles.c | 12 |
2 files changed, 21 insertions, 1 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 ******************** */ diff --git a/release/plugins/texture/tiles.c b/release/plugins/texture/tiles.c index 96d35198aee..2bdf669f9ca 100644 --- a/release/plugins/texture/tiles.c +++ b/release/plugins/texture/tiles.c @@ -66,7 +66,7 @@ float result[8]; float cfra; int plugin_tex_doit(int, Cast *, float *, float *, float *); - +void plugin_instance_init(Cast*); /* ******************** Fixed functions ***************** */ @@ -83,6 +83,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) @@ -99,6 +107,8 @@ 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; + } /* ************************************************************ |