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/template.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/template.c')
-rw-r--r-- | Smoke/template.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Smoke/template.c b/Smoke/template.c new file mode 100644 index 0000000..c873256 --- /dev/null +++ b/Smoke/template.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 ".h" + + +static int _render = FALSE; + +static int _num_colors = PALETTE_MAXCOLORS; + +static int _colormap = PALETTE_BLACKWHITE; + + +void _set_render(int render_) +{ + _render = render_; +} + +int _get_render(void) +{ + return _render; +} + +void _set_num_colors(int num_colors) +{ + _num_colors = num_colors; +} + +int _get_num_colors(void) +{ + return _num_colors; +} + +void _set_colormap(int colormap) +{ + _colormap = colormap; +} + +int _get_colormap(void) +{ + return _colormap; +} + + +struct color4f _get_color(float value) +{ + struct color4f return_value; + + return_value = set_palette(_colormap, value, _num_colors); + + return return_value; +} |