Add comments to make decyphering the faces easier
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 5 Feb 2004 17:36:02 +0000 (17:36 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 5 Feb 2004 17:36:02 +0000 (17:36 +0000)
progs/demos/cubemap.c

index a3774afec771364a9846b46bab7fc7ae761a6b77..4b97efbbd22828921f9750d380eba916d52ade0b 100644 (file)
@@ -234,12 +234,12 @@ static void init_checkers( void )
 #define CUBE_TEX_SIZE 64
    GLubyte image[CUBE_TEX_SIZE][CUBE_TEX_SIZE][3];
    static const GLubyte colors[6][3] = {
-      { 255,   0,   0 },
-      {   0, 255, 255 },
-      {   0, 255,   0 },
-      { 255,   0, 255 },
-      {   0,   0, 255 },
-      { 255, 255,   0 }
+      { 255,   0,   0 },       /* face 0 - red */
+      {   0, 255, 255 },       /* face 1 - cyan */
+      {   0, 255,   0 },       /* face 2 - green */
+      { 255,   0, 255 },       /* face 3 - purple */
+      {   0,   0, 255 },       /* face 4 - blue */
+      { 255, 255,   0 }                /* face 5 - yellow */
    };
    static const GLenum targets[6] = {
       GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB,