[GL3] VAO and VBO question about dynamic/stream buffers

Started by
3 comments, last by Kaptein 11 years, 4 months ago
Hello, I am writing here with a question which was haunting me lately.

I want to draw some dynamic data using a VAO, but I am not pretty sure how to do it. Doing it the regular dynamic/stream VBO way it works, but when I do it with a VAO I need to bind the buffer I want to change and while using gDebugger I found out that those binds in dynamic/stream functions are pretty expensive and gDebugger doesn't recommend using those, so I want to know how should I draw a dynamic VBOs in a VAO?

Thanks in advance!

Andrew.
Advertisement
This page should have all the information: http://www.opengl.org/wiki/Buffer_Object_Streaming
There's no way around a glBindBuffer though.

New C/C++ Build Tool 'Stir' (doesn't just generate Makefiles, it does the build): https://github.com/space222/stir

Thanks for an answer. I know how to stream the buffers with the bind. My question is about how to avoid the bind, or it is unavoidable. :?
You cannot get around the binding.
the most common way "around bind," is to put many meshes into a single VBO, and render different parts of the data using glDrawArrays ..., first_vertex, count (or elements)

This topic is closed to new replies.

Advertisement