src/gl/common.h

changeset 231
a9bf6bab5ea2
parent 218
63125c36de73
child 245
a41ccc6924e3
equal deleted inserted replaced
230:a1f3f7d9078b 231:a9bf6bab5ea2
91 // Different ways to render the scene 91 // Different ways to render the scene
92 enum class RenderStyle 92 enum class RenderStyle
93 { 93 {
94 // Normal rendering style 94 // Normal rendering style
95 Normal, 95 Normal,
96 // Render all polygons as lines
97 Wireframe,
98 // Use green colour for front faces and red colour for back faces 96 // Use green colour for front faces and red colour for back faces
99 BfcRedGreen, 97 BfcRedGreen,
100 // Use a different colour for each object 98 // Use a different colour for each object
101 RandomColors, 99 RandomColors,
102 // Render so that the colour of an object has an one to one correspondence with its id 100 // Render so that the colour of an object has an one to one correspondence with its id
131 QColor backgroundColor{48, 48, 48}; 129 QColor backgroundColor{48, 48, 48};
132 QColor selectedColor{32, 32, 255}; 130 QColor selectedColor{32, 32, 255};
133 GLfloat lineThickness = 2.0f; 131 GLfloat lineThickness = 2.0f;
134 bool lineAntiAliasing = true; 132 bool lineAntiAliasing = true;
135 bool drawAxes = true; 133 bool drawAxes = true;
134 bool wireframe = false;
136 }; 135 };
137 } 136 }
138 137
139 Q_DECLARE_METATYPE(gl::RenderStyle) 138 Q_DECLARE_METATYPE(gl::RenderStyle)
140 139

mercurial