Skip to content

Instantly share code, notes, and snippets.

@jblocksom
Created August 9, 2013 17:27
Show Gist options
  • Save jblocksom/6195451 to your computer and use it in GitHub Desktop.
Save jblocksom/6195451 to your computer and use it in GitHub Desktop.
Cube Indices for OpenGL 3D Transforms chapter
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