Created
October 29, 2013 21:13
-
-
Save jblocksom/7222704 to your computer and use it in GitHub Desktop.
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
GLfloat boxVerts[] = { | |
// left side | |
-1.0, -1.0, -1.0, | |
-1.0, -1.0, 1.0, | |
-1.0, 1.0, -1.0, | |
-1.0, -1.0, 1.0, | |
-1.0, 1.0, -1.0, | |
-1.0, 1.0, 1.0, | |
// right side | |
1.0, -1.0, -1.0, | |
1.0, -1.0, 1.0, | |
1.0, 1.0, -1.0, | |
1.0, -1.0, 1.0, | |
1.0, 1.0, -1.0, | |
1.0, 1.0, 1.0, | |
// Bottom | |
-1.0, 1.0, -1.0, | |
-1.0, 1.0, 1.0, | |
1.0, 1.0, -1.0, | |
-1.0, 1.0, 1.0, | |
1.0, 1.0, -1.0, | |
1.0, 1.0, 1.0, | |
// Top | |
-1.0, -1.0, -1.0, | |
-1.0, -1.0, 1.0, | |
1.0, -1.0, -1.0, | |
-1.0, -1.0, 1.0, | |
1.0, -1.0, -1.0, | |
1.0, -1.0, 1.0, | |
}; | |
const int COORDS_PER_VERTEX = 3; |
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
GLfloat boxVerts[] = { | |
// left side | |
-1.0, -1.0, -1.0, 1.0, 0.0, | |
-1.0, -1.0, 1.0, 0.0, 0.0, | |
-1.0, 1.0, -1.0, 1.0, 1.0, | |
-1.0, -1.0, 1.0, 0.0, 0.0, | |
-1.0, 1.0, -1.0, 1.0, 1.0, | |
-1.0, 1.0, 1.0, 0.0, 1.0, | |
// right side | |
1.0, -1.0, -1.0, 0.0, 0.0, | |
1.0, -1.0, 1.0, 0.0, 1.0, | |
1.0, 1.0, -1.0, 1.0, 0.0, | |
1.0, -1.0, 1.0, 0.0, 1.0, | |
1.0, 1.0, -1.0, 1.0, 0.0, | |
1.0, 1.0, 1.0, 1.0, 1.0, | |
// Bottom | |
-1.0, 1.0, -1.0, 0.0, 0.0, | |
-1.0, 1.0, 1.0, 0.0, 1.0, | |
1.0, 1.0, -1.0, 1.0, 0.0, | |
-1.0, 1.0, 1.0, 0.0, 1.0, | |
1.0, 1.0, -1.0, 1.0, 0.0, | |
1.0, 1.0, 1.0, 1.0, 1.0, | |
// Top | |
-1.0, -1.0, -1.0, 0.0, 0.0, | |
-1.0, -1.0, 1.0, 0.0, 1.0, | |
1.0, -1.0, -1.0, 1.0, 0.0, | |
-1.0, -1.0, 1.0, 0.0, 1.0, | |
1.0, -1.0, -1.0, 1.0, 0.0, | |
1.0, -1.0, 1.0, 1.0, 1.0, | |
}; | |
const int COORDS_PER_VERTEX = 5; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment