How to render/switch between multiple VBOs?
Hi, i currently have a ship, and wish to shoot cannonballs from the ship. The problem is, i do not know how to switch from 1 VBO to another.
I have tried glBindBuffer(GL_ARRAY_BUFFER, theCannonballBuffer); but that has not worked. I am using glDrawArrays(GL_TRIANGLES, 0, TerrainDemo.theCannonballBuffer.getFaces().size() * 3);
I am actually using lwjgl instead of opengl, however the calls are the same and the opengl forum is far more helpful.
Here is the entire relevant code (render method, loading method, etc):
Is anyone able to tell me what i am doing wrong?
Here is a screenshot of the problem: