Jump to content
  • Advertisement
Sign in to follow this  
try_catch_this

Dynamic VBO's

This topic is 4779 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have an array of verticies and texture coordinates which change every few seconds. It would the data is static except that I have to delete some of the triangles every few frames or so. I only know how to use static vbo's though. Can anyone help with the steps I need to use a dynamic/streaming vbo? I would also like to beable to use glDrawRangeElements() if possible instead of glDrawArrays. On the On the irc I also heard about indexed triangle lists but am not quite sure what they are. thanks for any help

Share this post


Link to post
Share on other sites
Advertisement
Look here for information on how to use VBOs.

If your geometry is changing every few seconds, and not every frame, I don't think it should be necessary to use a dynamic VBO.

When you want to update the VBO you can either map the buffer with glMapBuffer, and overwrite the data, or you can just use the glBufferSubData function.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!