summaryrefslogtreecommitdiff
path: root/src/polyset.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-01-08 18:24:54 (GMT)
committerMarius Kintel <marius@kintel.net>2013-01-08 18:24:54 (GMT)
commit8cea6834f68cbbfb85c2568d388bf3b2e707cca5 (patch)
tree24d1cf90d6d234671a1c392e4ecd4becf34317c4 /src/polyset.h
parentd983ede35672b75d9d4e800fe913165846817e51 (diff)
bugfix for recently introduced bug: Render negative 2D objects slightly thicker than positive objects to avoid z-buffer tearing with OpenCSG rendering
Diffstat (limited to 'src/polyset.h')
-rw-r--r--src/polyset.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/polyset.h b/src/polyset.h
index 4ca57bf..6626f79 100644
--- a/src/polyset.h
+++ b/src/polyset.h
@@ -29,14 +29,15 @@ public:
BoundingBox getBoundingBox() const;
+#define CSGMODE_DIFFERENCE_FLAG 0x10
enum csgmode_e {
- CSGMODE_NONE,
- CSGMODE_NORMAL = 1,
- CSGMODE_DIFFERENCE = 2,
- CSGMODE_BACKGROUND = 11,
- CSGMODE_BACKGROUND_DIFFERENCE = 12,
- CSGMODE_HIGHLIGHT = 21,
- CSGMODE_HIGHLIGHT_DIFFERENCE = 22
+ CSGMODE_NONE = 0x00,
+ CSGMODE_NORMAL = 0x01,
+ CSGMODE_DIFFERENCE = CSGMODE_NORMAL | CSGMODE_DIFFERENCE_FLAG,
+ CSGMODE_BACKGROUND = 0x02,
+ CSGMODE_BACKGROUND_DIFFERENCE = CSGMODE_BACKGROUND | CSGMODE_DIFFERENCE_FLAG,
+ CSGMODE_HIGHLIGHT = 0x03,
+ CSGMODE_HIGHLIGHT_DIFFERENCE = CSGMODE_HIGHLIGHT | CSGMODE_DIFFERENCE_FLAG
};
void render_surface(csgmode_e csgmode, const Transform3d &m, GLint *shaderinfo = NULL) const;
contact: Jan Huwald // Impressum