summaryrefslogtreecommitdiff
path: root/src/rendersettings.h
blob: e4fa6c88dd0167401efef5de23854c6029701dd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#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);

	unsigned int openCSGTermLimit, img_width, img_height;
	double far_gl_clip_limit;
private:
	RenderSettings();
	~RenderSettings() {}

	std::map<RenderColor, Color4f> colors;
};

#endif
contact: Jan Huwald // Impressum