diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-03 18:05:51 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-03 18:05:51 (GMT) |
commit | b12d6854cbb458c3de11266efefa8fb2ea11a1cf (patch) | |
tree | 32fc00f87d0bdb7f9d024c6b174e5896fd66a0f2 /Smoke/smoke.c | |
parent | 909340f9a5299194c582f9224f21f4f4daf56e51 (diff) | |
download | 2iv35-b12d6854cbb458c3de11266efefa8fb2ea11a1cf.zip 2iv35-b12d6854cbb458c3de11266efefa8fb2ea11a1cf.tar.gz 2iv35-b12d6854cbb458c3de11266efefa8fb2ea11a1cf.tar.bz2 |
frame passing changes
Diffstat (limited to 'Smoke/smoke.c')
-rw-r--r-- | Smoke/smoke.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Smoke/smoke.c b/Smoke/smoke.c index 539c64e..0e62854 100644 --- a/Smoke/smoke.c +++ b/Smoke/smoke.c @@ -3,6 +3,8 @@ #include <windows.h> #endif +#include <stdlib.h> + #include <rfftw.h> #include "fluids.h" @@ -12,7 +14,7 @@ static int smoke_render_smoke = TRUE; static int smoke_dataset = DATASET_RHO; -static fftw_real *smoke_field; +static fftw_real *smoke_frame; void smoke_set_render(int render_smoke) @@ -35,12 +37,12 @@ int smoke_get_dataset(void) return smoke_dataset; } -void smoke_set_field(fftw_real *field) +void smoke_init(size_t frame_size) { - smoke_field = field; + smoke_frame = malloc(frame_size); } -fftw_real *smoke_get_field(void) +fftw_real *smoke_get_frame(void) { - return smoke_field; + return smoke_frame; } |