src/gl/common.h

changeset 119
24275a4064f4
parent 115
ed884a2fb009
child 170
9b655f6fe5a1
equal deleted inserted replaced
118:8e1c9f18ae15 119:24275a4064f4
187 // Use green colour for front faces and red colour for back faces 187 // Use green colour for front faces and red colour for back faces
188 BfcRedGreen, 188 BfcRedGreen,
189 // Use a different colour for each object 189 // Use a different colour for each object
190 RandomColors, 190 RandomColors,
191 // Render so that the colour of an object has an one to one correspondence with its id 191 // Render so that the colour of an object has an one to one correspondence with its id
192 PickScene 192 PickScene,
193 // Render a scene where vertices can be picked
194 VertexPickScene,
193 }; 195 };
194 196
195 // Different ways to render fragments. 197 // Different ways to render fragments.
196 // These are also defined in shaders 198 // These are also defined in shaders
197 enum class FragmentStyle 199 enum class FragmentStyle
204 BfcRed = 2, 206 BfcRed = 2,
205 // Use a colour based on the object to distinguish objects 207 // Use a colour based on the object to distinguish objects
206 RandomColors = 3, 208 RandomColors = 3,
207 // Use a colour that codes the object's id 209 // Use a colour that codes the object's id
208 Id = 4, 210 Id = 4,
211 // Render everything black
212 Black = 5,
209 }; 213 };
210 214
211 // User options for rendering 215 // User options for rendering
212 struct RenderPreferences 216 struct RenderPreferences
213 { 217 {

mercurial