Created
August 9, 2013 17:27
-
-
Save jblocksom/6195451 to your computer and use it in GitHub Desktop.
Cube Indices for OpenGL 3D Transforms chapter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GLuint cubeTriIndicesBottomTop[] = { | |
// Bottom | |
0, 1, 2, 0, 2, 3, | |
// Top | |
4, 5, 6, 4, 6, 7, | |
}; | |
GLuint cubeTriIndicesFrontBack[] = { | |
// Front | |
0, 4, 1, 4, 1, 5, | |
// Back | |
2, 6, 3, 6, 3, 7, | |
}; | |
GLuint cubeTriIndicesLeftRight[] = { | |
0, 3, 4, 3, 4, 7, | |
1, 2, 5, 2, 5, 6, | |
}; | |
const int numCubeFaceIndices = 12; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment