diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-10 20:52:19 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-10 20:52:19 (GMT) |
commit | a003a02f8ae4f5bc14cbed9249b0fbfefdd2fd07 (patch) | |
tree | 8f3f61a0b2371a122c90835466895a45d4f7659a /Smoke/streamlines.c | |
parent | f9e23896d3525e3dfe710585f6a88858cb88f8c6 (diff) | |
download | 2iv35-a003a02f8ae4f5bc14cbed9249b0fbfefdd2fd07.zip 2iv35-a003a02f8ae4f5bc14cbed9249b0fbfefdd2fd07.tar.gz 2iv35-a003a02f8ae4f5bc14cbed9249b0fbfefdd2fd07.tar.bz2 |
fx or vy get/setters added. mem probs fixed
Diffstat (limited to 'Smoke/streamlines.c')
-rw-r--r-- | Smoke/streamlines.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Smoke/streamlines.c b/Smoke/streamlines.c index be3dfe4..3b54a36 100644 --- a/Smoke/streamlines.c +++ b/Smoke/streamlines.c @@ -26,6 +26,7 @@ static float streamlines_alpha = 1.0f; static fftw_real *streamlines_frame; static fftw_real **streamlines_history; +struct fftw_real_xy *streamlines_history_scalars; void streamlines_set_render(int render_streamlines) @@ -88,16 +89,29 @@ fftw_real *streamlines_get_frame(void) return streamlines_frame; } +/* rename and move to flowvis */ void streamlines_set_history(fftw_real **history) { streamlines_history = history; } +/* rename and move to flowvis */ fftw_real *streamlines_get_history(int hisdex) { return streamlines_history[hisdex]; } +void streamlines_set_history_scalars(struct fftw_real_xy *history) +{ + streamlines_history_scalars = history; +} + +struct fftw_real_xy *streamlines_get_history_scalars(void) +{ + return streamlines_history_scalars; +} + + struct color4f streamlines_get_color(float value) { |