table of contents
GLGETBUFFERPARAMETER(3G) | OpenGL Manual | GLGETBUFFERPARAMETER(3G) |
NAME¶
glGetBufferParameteriv - return parameters of a buffer object
C SPECIFICATION¶
void glGetBufferParameteriv(GLenum target, GLenum value, GLint * data);
void glGetBufferParameteri64v(GLenum target, GLenum value, GLint64 * data);
PARAMETERS¶
target
value
data
DESCRIPTION¶
glGetBufferParameteriv returns in data a selected parameter of the buffer object specified by target.
value names a specific buffer object parameter, as follows:
GL_BUFFER_ACCESS
GL_BUFFER_MAPPED
GL_BUFFER_SIZE
GL_BUFFER_USAGE
NOTES¶
If an error is generated, no change is made to the contents of data.
The GL_ATOMIC_COUNTER_BUFER target is available only if the GL version is 4.2 or greater.
The GL_DISPATCH_INDIRECT_BUFFER and GL_SHADER_STORAGE_BUFFER targets are available only if the GL version is 4.3 or greater.
ERRORS¶
GL_INVALID_ENUM is generated if target or value is not an accepted value.
GL_INVALID_OPERATION is generated if the reserved buffer object name 0 is bound to target.
SEE ALSO¶
glBindBuffer(), glBufferData(), glMapBuffer(), glUnmapBuffer()
COPYRIGHT¶
Copyright © 2005 Addison-Wesley. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
AUTHORS¶
opengl.org
05/02/2014 | opengl.org |