Skip to content

Instantly share code, notes, and snippets.

@jra101
Created April 9, 2013 04:10
Show Gist options
  • Save jra101/5342884 to your computer and use it in GitHub Desktop.
Save jra101/5342884 to your computer and use it in GitHub Desktop.
bool TestVertexArrayObjects()
{
GLuint va;
glGenVertexArrays(1, &va);
glBindVertexArray(va);
glDeleteVertexArrays(1, &va);
GLubyte input[4] = { 219, 102, 88, 7 };
for (int i = 0; i < 2; i++) {
GLuint b;
glGenBuffers(1, &b);
glNamedBufferDataEXT(b, sizeof(input), input, GL_STATIC_DRAW);
glDeleteBuffers(1, &b);
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment