I'm new to Modern OpenGL and have been following a handful of tutorials online. I'd appreciate some clarification on a few things so my head doesn't explode. None of the tutorials speak of adding/removing data from VBOs once the buffer has already been filled. I could really use some assistance.
So let's say I have 2 objects, each with vertex data loaded into a single VBO as
[x, y, z, w,
r, g, b, a,
x, y, z, w,
What's the best practice to adding another object to the VBO? Copy the original VBO into a larger array, add the new vertex data, then bind the larger array as the VBO?
Also, how would I go about removing objects (all of their vertex data)? Destroy the VBO and create a new one? (Removing particular parts of the VBO is beyond me.)
As you can tell, I don't quite have a grasp on the concept. If someone could point me in the right direction I'd very much appreciate it.