Dynamic VBO's

Started by
0 comments, last by James Trotter 18 years, 10 months ago
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
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.

This topic is closed to new replies.

Advertisement