summaryrefslogtreecommitdiff
path: root/src/renderer.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-11 22:45:14 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-11 22:45:14 (GMT)
commit9ed8d9a6732e1eea0265ff84917278a82d81e2dd (patch)
tree6322830c95d70b2310b45c7008cfd4dac6d4bf31 /src/renderer.h
parent647fdf5f98f6337955972375a17837aede922988 (diff)
Some small refactoring of color handling to support using the color() module to change only alpha
Diffstat (limited to 'src/renderer.h')
-rw-r--r--src/renderer.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/renderer.h b/src/renderer.h
index 3c25e98..e978080 100644
--- a/src/renderer.h
+++ b/src/renderer.h
@@ -1,11 +1,28 @@
#ifndef RENDERER_H_
#define RENDERER_H_
+#include "system-gl.h"
+
class Renderer
{
public:
virtual ~Renderer() {}
virtual void draw(bool showfaces, bool showedges) const = 0;
+
+ enum ColorMode {
+ COLORMODE_NONE,
+ COLORMODE_MATERIAL,
+ COLORMODE_CUTOUT,
+ COLORMODE_HIGHLIGHT,
+ COLORMODE_BACKGROUND,
+ COLORMODE_MATERIAL_EDGES,
+ COLORMODE_CUTOUT_EDGES,
+ COLORMODE_HIGHLIGHT_EDGES,
+ COLORMODE_BACKGROUND_EDGES
+ };
+
+ virtual void setColor(const double color[4], GLint *shaderinfo = NULL) const;
+ virtual void setColor(ColorMode colormode, GLint *shaderinfo = NULL) const;
};
#endif // RENDERER_H
contact: Jan Huwald // Impressum