diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-09 13:02:54 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-09 13:02:54 (GMT) |
commit | 29e82f50f6f23b1a344b486f377d918425e37188 (patch) | |
tree | 6d5ff663d8ef89898d5584eab9f63f45126b145a /Smoke/fluids.h | |
parent | 4f8eda57dc837193ea25737b28d3514b3858639f (diff) | |
download | 2iv35-29e82f50f6f23b1a344b486f377d918425e37188.zip 2iv35-29e82f50f6f23b1a344b486f377d918425e37188.tar.gz 2iv35-29e82f50f6f23b1a344b486f377d918425e37188.tar.bz2 |
simulation reset added; colormap autoscaling moved to fluids main loop
Diffstat (limited to 'Smoke/fluids.h')
-rw-r--r-- | Smoke/fluids.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Smoke/fluids.h b/Smoke/fluids.h index 85e82b5..07e8c1b 100644 --- a/Smoke/fluids.h +++ b/Smoke/fluids.h @@ -74,7 +74,9 @@ extern float threshold1; extern float threshold2; extern int active_slider; -void fluids_init(int dim); +int rescale_to_winwidth(float value); + + void fluids_set_calculate(int calculate); int fluids_get_calculate(void); @@ -83,11 +85,10 @@ void fluids_insert_smoke(int x, int y); int fluids_get_dim(void); -fftw_real *init_simulation(int n, struct vis_data_arrays *vis_data); - -int rescale_to_winwidth(float value); +void fluids_init_simulation(int n, struct vis_data_arrays *vis_data); +void fluids_reset_simulation(void); -void calculate_one_simulation_step(struct vis_data_arrays *vis_data); +void fluids_calculate_one_simulation_step(struct vis_data_arrays *vis_data); float get_dataset(int index); void set_autoscaling(void); |