summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2004-02-05 17:36:02 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2004-02-05 17:36:02 +0000
commit493e6e1e900b3286c90db6dc1686162a9c869bd9 (patch)
tree157fc17cb81ef1896a42f7316107b0cf90b68ca5
parentc2f739169efed62cb3a1f80a02e9afa9da7092dc (diff)
Add comments to make decyphering the faces easier
-rw-r--r--progs/demos/cubemap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/progs/demos/cubemap.c b/progs/demos/cubemap.c
index a3774afec7..4b97efbbd2 100644
--- a/progs/demos/cubemap.c
+++ b/progs/demos/cubemap.c
@@ -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,