# HG changeset patch # User Teemu Piippo # Date 1598298937 -10800 # Node ID 9eb5e06f34c3ae9df66563efd6fd50380e2c3507 # Parent e234edb5e613c67675bf7d775de0cf1ea4f281bf add comments diff -r e234edb5e613 -r 9eb5e06f34c3 src/gl/common.h --- a/src/gl/common.h Mon Aug 24 22:51:01 2020 +0300 +++ b/src/gl/common.h Mon Aug 24 22:55:37 2020 +0300 @@ -162,22 +162,34 @@ constexpr ArrayClass ARRAY_CLASSES[] = {ArrayClass::Lines, ArrayClass::Triangles, ArrayClass::Quads, ArrayClass::ConditionalLines}; constexpr int NUM_ARRAY_CLASSES = countof(ARRAY_CLASSES); + // Different ways to render the scene enum class RenderStyle { + // Normal rendering style Normal, + // Render all polygons as lines Wireframe, + // Use green colour for front faces and red colour for back faces BfcRedGreen, + // Use a different colour for each object RandomColors, + // Render so that the colour of an object has an one to one correspondence with its id PickScene }; - + + // Different ways to render fragments. // These are also defined in shaders enum class FragmentStyle { + // Use normal colours Normal = 0, + // Use a distinctive green colour for BFC red/green view BfcGreen = 1, + // Use a distinctive red colour for BFC red/green view BfcRed = 2, + // Use a colour based on the object to distinguish objects RandomColors = 3, + // Use a colour that codes the object's id Id = 4, };