Created
February 4, 2012 23:11
-
-
Save roxlu/1741010 to your computer and use it in GitHub Desktop.
Light Rays 0.1 - create VBO
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
| // 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