summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-01-17 22:38:03 -0500
committerTavian Barnes <tavianator@gmail.com>2010-01-17 22:38:03 -0500
commit5cf288488668c3be8e45757f873d61973493930c (patch)
treee1142c92591cf9c802937ef1974fd74cb923a92c /libdimension/dimension
parent517860ffe8301ea9c7b6544f2f482468b3414f98 (diff)
downloaddimension-5cf288488668c3be8e45757f873d61973493930c.tar.xz
Make quality flags work in C++.
C++ doesn't handle bitwise ops for enum types.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/scene.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdimension/dimension/scene.h b/libdimension/dimension/scene.h
index ffc8517..0d9dc9e 100644
--- a/libdimension/dimension/scene.h
+++ b/libdimension/dimension/scene.h
@@ -25,7 +25,7 @@
#ifndef DIMENSION_SCENE_H
#define DIMENSION_SCENE_H
-typedef enum {
+enum {
DMNSN_RENDER_NONE = 0,
DMNSN_RENDER_PIGMENT = 1 << 0,
DMNSN_RENDER_LIGHTS = 1 << 1,
@@ -33,7 +33,9 @@ typedef enum {
DMNSN_RENDER_TRANSLUCENCY = 1 << 3,
DMNSN_RENDER_REFLECTION = 1 << 4,
DMNSN_RENDER_FULL = ~DMNSN_RENDER_NONE
-} dmnsn_quality;
+};
+
+typedef unsigned int dmnsn_quality;
typedef struct {
/* World attributes */