diff options
author | Wilrik de Loose <wilrik@wilrik.nl> | 2007-12-14 08:35:25 (GMT) |
---|---|---|
committer | Wilrik de Loose <wilrik@wilrik.nl> | 2007-12-14 08:35:25 (GMT) |
commit | 5601182e9456b3d4d782f135c8b151f5d9b021cd (patch) | |
tree | fe9e06a8a0f572dad622e8887732796a725887fe /Smoke/fluids.h | |
parent | 2b49eb5eb684537c19d9f0eabdffad0ffcf196ac (diff) | |
download | 2iv35-5601182e9456b3d4d782f135c8b151f5d9b021cd.zip 2iv35-5601182e9456b3d4d782f135c8b151f5d9b021cd.tar.gz 2iv35-5601182e9456b3d4d782f135c8b151f5d9b021cd.tar.bz2 |
glyphs apart in een file gestopt
Diffstat (limited to 'Smoke/fluids.h')
-rw-r--r-- | Smoke/fluids.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Smoke/fluids.h b/Smoke/fluids.h index 7e306f7..96dd64f 100644 --- a/Smoke/fluids.h +++ b/Smoke/fluids.h @@ -1,3 +1,10 @@ +#ifndef _FLUIDS_H
+#define _FLUIDS_H
+
+#include <rfftw.h>
+#include <GL/gl.h>
+#include <GL/glu.h>
+
//--- SIMULATION PARAMETERS ------------------------------------------------------------------------ extern const int DIM; //size of simulation grid @@ -86,8 +93,37 @@ void calculate_one_simulation_step(void); int get_glyph_usage(void); +////////////////// + +void init_simulation(int n); +int rescale_to_winwidth(float value); +void FFT(int direction,void* vx); +int clamp(float x); +void solve(int n, fftw_real* vx, fftw_real* vy, fftw_real* vx0, fftw_real* vy0, fftw_real visc, fftw_real dt); +void diffuse_matter(int n, fftw_real *vx, fftw_real *vy, fftw_real *rho, fftw_real *rho0, fftw_real dt); +void set_forces(void); +void calculate_hight_plot(void); +void copy_frame(void); +void calculate_one_simulation_step(void); +void rainbow(float value,float* R,float* G,float* B); +void colormap_fire(float value,float* R,float* G,float* B); +float remap(float value); +struct color4f set_colormap(float vy, int draw_bar, float alpha); +void direction_to_color(float x, float y, int method); +float get_dataset(int index); +void set_autoscaling(void); +void draw_isolines(float threshold); +void visualize(void); +void keyboard(unsigned char key, int x, int y); +void click(int button, int state, int mx, int my); +void mouse_rotate(int mx, int my); +void drag(int mx, int my); + +////////////////// + void zoom_in(void); void zoom_out(void); +int get_glyph_usage(void); void selectColor(int arg); void selectOliverscolor(int arg); void select_dataset(int arg); @@ -101,6 +137,11 @@ void toggle_seed_insert(void); void set_glyph_scalar(int arg); void set_glyph_vector(int arg); +int get_var_dims(void); +void set_var_dims(int); +int get_glyph_sort(void); +void set_glyph_sort(int sort); + struct point { float x; float y; @@ -113,3 +154,5 @@ struct color4f { float b; float a; }; + +#endif
\ No newline at end of file |