diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-06 15:41:19 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-06 15:41:19 (GMT) |
commit | 5297d5f9565da695a6a9891f829118ecaea6ad8a (patch) | |
tree | 5ad10fc27445604c010f1f678b913fb2286b0fd3 /Smoke/heightplots.c | |
parent | 11e1578b67647a603e23fae44fe658fe2806e19a (diff) | |
download | 2iv35-5297d5f9565da695a6a9891f829118ecaea6ad8a.zip 2iv35-5297d5f9565da695a6a9891f829118ecaea6ad8a.tar.gz 2iv35-5297d5f9565da695a6a9891f829118ecaea6ad8a.tar.bz2 |
fixed heightplot get/setters
Diffstat (limited to 'Smoke/heightplots.c')
-rw-r--r-- | Smoke/heightplots.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Smoke/heightplots.c b/Smoke/heightplots.c index 2f166d6..61efea1 100644 --- a/Smoke/heightplots.c +++ b/Smoke/heightplots.c @@ -23,8 +23,11 @@ static float heightplots_alpha = 1.0f; static int heightplots_dataset = DATASET_RHO; -static int heightplots_rho, heightplots_vel, heightplots_force = 100; -static int heightplots_divv, heightplots_divf = 1000; +static int heightplots_rho = 100; +static int heightplots_vel = 10; +static int heightplots_force = 10; +static int heightplots_divv = 100; +static int heightplots_divf = 100; static fftw_real *heightplots_frame; @@ -84,14 +87,19 @@ void heightplots_set_height(int height) switch(heightplots_dataset) { case DATASET_RHO: heightplots_rho = height; + break; case DATASET_VEL: heightplots_vel = height; + break; case DATASET_FORCE: heightplots_force = height; + break; case DATASET_DIVV: heightplots_divv = height; + break; case DATASET_DIVF: heightplots_divf = height; + break; default: break; } @@ -106,14 +114,19 @@ int heightplots_get_height(void) switch(heightplots_dataset) { case DATASET_RHO: return_value = heightplots_rho; + break; case DATASET_VEL: return_value = heightplots_vel; + break; case DATASET_FORCE: return_value = heightplots_force; + break; case DATASET_DIVV: return_value = heightplots_divv; + break; case DATASET_DIVF: return_value = heightplots_divf; + break; default: break; } |