Skip to content

Instantly share code, notes, and snippets.

@rygorous
Created November 6, 2013 00:30
Embed
What would you like to do?
better.
GLuint glx_make_buffer( GLenum type, size_t size, void const * initial, GLenum usage )
{
GLuint id;
glGenBuffers( 1, &id );
glBindBuffer( type, id );
glBufferData( type, size, initial, usage );
return id;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment