glGetBufferParameteiv
- return texture parameter values
void glGetBufferParameteriv(GLenum target, GLenum pname, GLint * params)
target
Specifies the buffer object target. Which must be GL_ARRAY_BUFFER
.
pname
Specifies the symbolic name of a buffer object parameter. Which can be either GL_BUFFER_SIZE
, GL_BUFFER_USAGE
, or GL_BUFFER_ACCESS
.
params
Returns the buffer object parameters.
glGetBufferParameter
returns in params
the value or values of the buffer object parameter specified as pname. target
defines the target buffer object, which must be GL_ARRAY_BUFFER
.
GL_BUFFER_SIZE
Returns the size of the data store in basic machine units.
GL_BUFFER_USAGE
Returns the expected application usage pattern of the data store. Possible values are:
GL_STATIC_DRAW
Where the data store contents will be specified once by the application, and used many times as the source for GL drawing commands.
GL_DYNAMIC_DRAW
Where the data store contents will be respecified repeatedly by the application, and used many times as the source for GL drawing commands.
GL_BUFFER_ACCESS
Returns the access capability for the data store. Will always be GL_WRITE_ONLY
.
GL_INVALID_ENUM
is generated if target
or pname
is not one of the accepted defined values.
Copyright © 2003-2004 Silicon Graphics, Inc.
This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.
glBufferData
, glBufferSubData
, glBindBuffer
, glDeleteBuffers
, glGenBuffers