Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (28 sloc) 630 Bytes
#ifndef RENDERSETTINGS_H_
#define RENDERSETTINGS_H_
#include <map>
#include "linalg.h"
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 std::map<RenderColor, Color4f> &colors);
Color4f color(RenderColor idx);
private:
RenderSettings();
~RenderSettings() {}
std::map<RenderColor, Color4f> colors;
};
#endif
Something went wrong with that request. Please try again.