![]() | DataBufferBind Method |
Namespace: Ooogles
The state of a buffer object immediately after it is first bound is a zero-sized memory buffer with StaticDraw usage.
While a buffer object name is bound, GL operations on the target to which it is bound affect the bound buffer object, and queries of the target to which it is bound return state from the bound buffer object.
A buffer object binding created Bind remains active until a different buffer object name is bound to the same target, or until the bound buffer object is deleted.
Once created, a named buffer object may be re-bound to any target as often as needed. However, the GL implementation may make choices about how to optimize the storage of a buffer object based on its initial binding target.
OpenGL API: glBindBuffer