Skip to content

Instantly share code, notes, and snippets.

@roxlu
Created February 4, 2012 23:11
Show Gist options
  • Select an option

  • Save roxlu/1741010 to your computer and use it in GitHub Desktop.

Select an option

Save roxlu/1741010 to your computer and use it in GitHub Desktop.
Light Rays 0.1 - create VBO
// create VBO
VertexP* vertex_data = plane_data.getVertexP();
glGenBuffers(1, &plane_vbo); eglGetError();
glBindBuffer(GL_ARRAY_BUFFER, plane_vbo); eglGetError();
glBufferData(GL_ARRAY_BUFFER, sizeof(VertexP) * plane_data.size(), vertex_data, GL_STATIC_DRAW); eglGetError();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment