glBindBuffersRange

glBindBuffersRange: man4/glBindBuffersRange.xml

glBindBuffersRange binds a set of count ranges from buffer objects whose names are given in the array buffers to the count consecutive binding points starting from index index of the array of targets specified by target. offsets specifies the address of an array containing count starting offsets within the buffers, and sizes specifies the adderess of an array of count sizes of the ranges. If buffers is null then offsets and sizes are ignored and glBindBuffersRange unbinds any buffers that are currently bound to the referenced binding points. Assuming no errors are generated, it is equivalent to the following pseudo-code, which calls glBindBufferRange :

for (i = 0; i < count; i++) {
    if (buffers != NULL) {
        glBindBufferRange(target, first + i, buffers[i], offsets[i], sizes[i]);
    } else {
        glBindBufferBase(target, first + i, 0);
    }
}
More...
@OpenGL_Version(OGLIntroducedIn.V4P4)
@OpenGL_Extension("GL_ARB_multi_bind")
fn_glBindBuffersRange glBindBuffersRange;

Detailed Description

glBindBuffersBase is available only if the GL version is 4.4 or higher.

See Also

glGenBuffers, glDeleteBuffers, glBindBuffer, glBindBufferBase, glBindBufferRange, glBindBuffersRange, glMapBuffer, glUnmapBuffer

Meta