diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2007-12-19 20:59:56 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2007-12-19 20:59:56 (GMT) |
commit | 5f1fc7b0711f51dd05077303f854c658ccd9dcba (patch) | |
tree | 7d519f704a04a8f25d3e5f14ce809a7d985c4581 /Smoke/isolines.c | |
parent | a60088999da4f44bf5885f431fe78eb87d643ae7 (diff) | |
download | 2iv35-5f1fc7b0711f51dd05077303f854c658ccd9dcba.zip 2iv35-5f1fc7b0711f51dd05077303f854c658ccd9dcba.tar.gz 2iv35-5f1fc7b0711f51dd05077303f854c658ccd9dcba.tar.bz2 |
Loads of splitting, gui templates added for other elements
Diffstat (limited to 'Smoke/isolines.c')
-rw-r--r-- | Smoke/isolines.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Smoke/isolines.c b/Smoke/isolines.c new file mode 100644 index 0000000..5355b83 --- /dev/null +++ b/Smoke/isolines.c @@ -0,0 +1,58 @@ +#ifdef G_OS_WIN32 +#define WIN32_LEAN_AND_MEAN 1 +#include <windows.h> +#endif + + +#include "funcs.h" +#include "palette.h" + +#include "isolines.h" + + +static int isolines_render = FALSE; + +static int isolines_num_colors = PALETTE_MAXCOLORS; + +static int isolines_colormap = PALETTE_BLACKWHITE; + + +void isolines_set_render(int render_isolines) +{ + isolines_render = render_isolines; +} + +int isolines_get_render(void) +{ + return isolines_render; +} + +void isolines_set_num_colors(int num_colors) +{ + isolines_num_colors = num_colors; +} + +int isolines_get_num_colors(void) +{ + return isolines_num_colors; +} + +void isolines_set_colormap(int colormap) +{ + isolines_colormap = colormap; +} + +int isolines_get_colormap(void) +{ + return isolines_colormap; +} + + +struct color4f isolines_get_color(float value) +{ + struct color4f return_value; + + return_value = set_palette(isolines_colormap, value, isolines_num_colors); + + return return_value; +} |