~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to intern/smoke/extern/smoke_API.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
struct FLUID_3D;
39
39
 
40
 
// export
41
 
void smoke_export(struct FLUID_3D *fluid, float *dt, float *dx, float **dens, float **densold, float **heat, float **heatold, float **vx, float **vy, float **vz, float **vxold, float **vyold, float **vzold, unsigned char **obstacles);
42
 
 
43
40
// low res
44
 
struct FLUID_3D *smoke_init(int *res, float *p0);
 
41
struct FLUID_3D *smoke_init(int *res, float dx, float dtdef, int use_heat, int use_fire, int use_colors);
45
42
void smoke_free(struct FLUID_3D *fluid);
46
43
 
47
 
void smoke_initBlenderRNA(struct FLUID_3D *fluid, float *alpha, float *beta, float *dt_factor, float *vorticity, int *border_colli);
48
 
void smoke_step(struct FLUID_3D *fluid, size_t framenr, float fps);
 
44
void smoke_initBlenderRNA(struct FLUID_3D *fluid, float *alpha, float *beta, float *dt_factor, float *vorticity, int *border_colli, float *burning_rate,
 
45
                                                  float *flame_smoke, float *flame_smoke_color, float *flame_vorticity, float *flame_ignition_temp, float *flame_max_temp);
 
46
void smoke_step(struct FLUID_3D *fluid, float gravity[3], float dtSubdiv);
49
47
 
50
48
float *smoke_get_density(struct FLUID_3D *fluid);
 
49
float *smoke_get_flame(struct FLUID_3D *fluid);
 
50
float *smoke_get_fuel(struct FLUID_3D *fluid);
 
51
float *smoke_get_react(struct FLUID_3D *fluid);
 
52
float *smoke_get_color_r(struct FLUID_3D *fluid);
 
53
float *smoke_get_color_g(struct FLUID_3D *fluid);
 
54
float *smoke_get_color_b(struct FLUID_3D *fluid);
 
55
void smoke_get_rgba(struct FLUID_3D *fluid, float *data, int sequential);
 
56
void smoke_get_rgba_from_density(struct FLUID_3D *fluid, float color[3], float *data, int sequential);
51
57
float *smoke_get_heat(struct FLUID_3D *fluid);
52
58
float *smoke_get_velocity_x(struct FLUID_3D *fluid);
53
59
float *smoke_get_velocity_y(struct FLUID_3D *fluid);
54
60
float *smoke_get_velocity_z(struct FLUID_3D *fluid);
55
61
 
 
62
/* Moving obstacle velocity provided by blender */
 
63
void smoke_get_ob_velocity(struct FLUID_3D *fluid, float **x, float **y, float **z);
 
64
 
56
65
float *smoke_get_force_x(struct FLUID_3D *fluid);
57
66
float *smoke_get_force_y(struct FLUID_3D *fluid);
58
67
float *smoke_get_force_z(struct FLUID_3D *fluid);
65
74
void smoke_dissolve(struct FLUID_3D *fluid, int speed, int log);
66
75
 
67
76
// wavelet turbulence functions
68
 
struct WTURBULENCE *smoke_turbulence_init(int *res, int amplify, int noisetype);
 
77
struct WTURBULENCE *smoke_turbulence_init(int *res, int amplify, int noisetype, int use_fire, int use_colors);
69
78
void smoke_turbulence_free(struct WTURBULENCE *wt);
70
79
void smoke_turbulence_step(struct WTURBULENCE *wt, struct FLUID_3D *fluid);
71
80
 
72
81
float *smoke_turbulence_get_density(struct WTURBULENCE *wt);
 
82
float *smoke_turbulence_get_color_r(struct WTURBULENCE *wt);
 
83
float *smoke_turbulence_get_color_g(struct WTURBULENCE *wt);
 
84
float *smoke_turbulence_get_color_b(struct WTURBULENCE *wt);
 
85
void smoke_turbulence_get_rgba(struct WTURBULENCE *wt, float *data, int sequential);
 
86
void smoke_turbulence_get_rgba_from_density(struct WTURBULENCE *wt, float color[3], float *data, int sequential);
 
87
float *smoke_turbulence_get_flame(struct WTURBULENCE *wt);
 
88
float *smoke_turbulence_get_fuel(struct WTURBULENCE *wt);
 
89
float *smoke_turbulence_get_react(struct WTURBULENCE *wt);
73
90
void smoke_turbulence_get_res(struct WTURBULENCE *wt, int *res);
 
91
int smoke_turbulence_get_cells(struct WTURBULENCE *wt);
74
92
void smoke_turbulence_set_noise(struct WTURBULENCE *wt, int type);
75
93
void smoke_initWaveletBlenderRNA(struct WTURBULENCE *wt, float *strength);
76
 
 
77
94
void smoke_dissolve_wavelet(struct WTURBULENCE *wt, int speed, int log);
78
95
 
79
 
// export
80
 
void smoke_turbulence_export(struct WTURBULENCE *wt, float **dens, float **densold, float **tcu, float **tcv, float **tcw);
 
96
/* export */
 
97
void smoke_export(struct FLUID_3D *fluid, float *dt, float *dx, float **dens, float **react, float **flame, float **fuel, float **heat, float **heatold,
 
98
                                  float **vx, float **vy, float **vz, float **r, float **g, float **b, unsigned char **obstacles);
 
99
void smoke_turbulence_export(struct WTURBULENCE *wt, float **dens, float **react, float **flame, float **fuel,
 
100
                                                         float **r, float **g, float **b, float **tcu, float **tcv, float **tcw);
 
101
 
 
102
/* flame spectrum */
 
103
void flame_get_spectrum(unsigned char *spec, int width, float t1, float t2);
 
104
 
 
105
/* data fields */
 
106
int smoke_has_heat(struct FLUID_3D *fluid);
 
107
int smoke_has_fuel(struct FLUID_3D *fluid);
 
108
int smoke_has_colors(struct FLUID_3D *fluid);
 
109
int smoke_turbulence_has_fuel(struct WTURBULENCE *wt);
 
110
int smoke_turbulence_has_colors(struct WTURBULENCE *wt);
 
111
 
 
112
void smoke_ensure_heat(struct FLUID_3D *fluid);
 
113
void smoke_ensure_fire(struct FLUID_3D *fluid, struct WTURBULENCE *wt);
 
114
void smoke_ensure_colors(struct FLUID_3D *fluid, struct WTURBULENCE *wt, float init_r, float init_g, float init_b);
81
115
 
82
116
#ifdef __cplusplus
83
117
}