Skip to content

Instantly share code, notes, and snippets.

@EddyLuten
Created May 20, 2014 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EddyLuten/89e07362707c7e4a5fad to your computer and use it in GitHub Desktop.
Save EddyLuten/89e07362707c7e4a5fad to your computer and use it in GitHub Desktop.
Chapter 4, Snippet 18 - OpenGLBook.com
glBindVertexArray(BufferIds[0]);
ExitOnGLError("ERROR: Could not bind the VAO for drawing purposes");
glDrawElements(GL_TRIANGLES, 36, GL_UNSIGNED_INT, (GLvoid*)0);
ExitOnGLError("ERROR: Could not draw the cube");
glBindVertexArray(0);
glUseProgram(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment