add comments

Mon, 24 Aug 2020 22:55:37 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Mon, 24 Aug 2020 22:55:37 +0300
changeset 91
9eb5e06f34c3
parent 90
e234edb5e613
child 92
c438a7db7c52

add comments

src/gl/common.h file | annotate | diff | comparison | revisions
--- 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,
 	};
 

mercurial