Tuesday, August 27, 2013

OpenGL changing VBO data occasionally

OpenGL changing VBO data occasionally

I have a VBO for vertexes that compose a quad on screen, and I'd like to
change it when the programmer requests an image resizing.
It won't be changing frequently, it's only when (and if) someone requests
the image resize, so I don't think I should use GL_STREAM_DRAW. The VBO
will also be already loaded when this function is called.
How can I get the VBO data and change only a few values?

No comments:

Post a Comment