diff options
author | Marius Kintel <marius@kintel.net> | 2011-12-11 22:45:14 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-12-11 22:45:14 (GMT) |
commit | 9ed8d9a6732e1eea0265ff84917278a82d81e2dd (patch) | |
tree | 6322830c95d70b2310b45c7008cfd4dac6d4bf31 /src/rendersettings.h | |
parent | 647fdf5f98f6337955972375a17837aede922988 (diff) |
Some small refactoring of color handling to support using the color() module to change only alpha
Diffstat (limited to 'src/rendersettings.h')
-rw-r--r-- | src/rendersettings.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/rendersettings.h b/src/rendersettings.h new file mode 100644 index 0000000..32e56f1 --- /dev/null +++ b/src/rendersettings.h @@ -0,0 +1,35 @@ +#ifndef RENDERSETTINGS_H_ +#define RENDERSETTINGS_H_ + +#include <QColor> +#include <QMap> + +class RenderSettings +{ +public: + static RenderSettings *inst(bool erase = false); + + enum RenderColor { + BACKGROUND_COLOR, + OPENCSG_FACE_FRONT_COLOR, + OPENCSG_FACE_BACK_COLOR, + CGAL_FACE_FRONT_COLOR, + CGAL_FACE_2D_COLOR, + CGAL_FACE_BACK_COLOR, + CGAL_EDGE_FRONT_COLOR, + CGAL_EDGE_BACK_COLOR, + CGAL_EDGE_2D_COLOR, + CROSSHAIR_COLOR + }; + + void setColors(const QMap<RenderColor, QColor> &colors); + QColor color(RenderColor idx) const; + +private: + RenderSettings(); + ~RenderSettings() {} + + QMap<RenderColor, QColor> colors; +}; + +#endif |