~ubuntu-branches/ubuntu/intrepid/blender/intrepid-updates

« back to all changes in this revision

Viewing changes to release/plugins/texture/clouds2.c

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-08-08 02:45:40 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080808024540-kkjp7ekfivzhuw3l
Tags: 2.46+dfsg-4
* Fix python syntax warning in import_dxf.py, which led to nasty output
  in installation/upgrade logs during byte-compilation, using a patch
  provided by the script author (Closes: #492280):
   - debian/patches/45_fix_python_syntax_warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: clouds2.c,v 1.2 2006/06/10 10:47:21 ton Exp $
 
2
 * $Id: clouds2.c 14463 2008-04-18 19:10:03Z sirdude $
3
3
 *
4
 
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
 
4
 * ***** BEGIN GPL LICENSE BLOCK *****
5
5
 *
6
6
 * This program is free software; you can redistribute it and/or
7
7
 * modify it under the terms of the GNU General Public License
8
8
 * as published by the Free Software Foundation; either version 2
9
 
 * of the License, or (at your option) any later version. The Blender
10
 
 * Foundation also sells licenses for use in proprietary software under
11
 
 * the Blender License.  See http://www.blender.org/BL/ for information
12
 
 * about this.
 
9
 * of the License, or (at your option) any later version.
13
10
 *
14
11
 * This program is distributed in the hope that it will be useful,
15
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
24
 *
28
25
 * Contributor(s): none yet.
29
26
 *
30
 
 * ***** END GPL/BL DUAL LICENSE BLOCK *****
 
27
 * ***** END GPL LICENSE BLOCK *****
31
28
 */
32
29
 
33
30
#include "math.h"
76
73
 
77
74
float cfra;
78
75
 
79
 
int plugin_tex_doit(int, Cast*, float*, float*, float*);
 
76
int plugin_tex_doit(int, Cast*, float*, float*, float*, float*);
 
77
void plugin_instance_init(Cast*);
80
78
 
81
79
/* ******************** Fixed functions ***************** */
82
80
 
94
92
        
95
93
}
96
94
 
 
95
/* 
 
96
 * initialize any data for a particular instance of
 
97
 * the plugin here
 
98
 */
 
99
void plugin_instance_init(Cast *cast)
 
100
{
 
101
}
 
102
 
97
103
/* this function should not be changed: */
98
104
 
99
105
void plugin_getinfo(PluginInfo *info)
108
114
        info->varstr= varstr;
109
115
 
110
116
        info->init= plugin_init;
111
 
        info->tex_doit=  (TexDoit) plugin_tex_doit;
 
117
        info->tex_doit= (TexDoit) plugin_tex_doit;
112
118
        info->callback= plugin_but_changed;
 
119
        info->instance_init= (void (*)(void *)) plugin_instance_init;
113
120
}
114
121
 
115
122
/* ********************* the texture ******************** */
116
123
 
117
124
 
118
 
int plugin_tex_doit(int stype, Cast *cast, float *texvec, float *dxt, float *dyt)
 
125
int plugin_tex_doit(int stype, Cast *cast, float *texvec, float *dxt, float *dyt, float *result)
119
126
{
120
127
        float val = 0.0;
121
128
        float a = 1.0;