Graphics Reference
In-Depth Information
Vertex Buffer Queries
Vertex buffer objects have associated state information describing the state
and usage of the buffer. Those parameters can be retrieved by calling the
following function:
void glGetBufferParameteriv (GLenum target , GLenum pname ,
GLint * params )
void glGetBufferParameter64iv (GLenum target , GLenum pname ,
GLint64 * params )
target
specifies the buffer of the currently bound vertex buffer;
must be one of GL_ARRAY_BUFFER, GL_COPY_READ_BUFFER,
GL_COPY_WRITE_BUFFER, GL_ELEMENT_ARRAY_BUFFER,
GL_PIXEL_PACK_BUFFER, GL_PIXEL_UNPACK_BUFFER,
GL_TRANSFORM_FEEDBACK_BUFFER, or GL_UNIFORM_BUFFER
specifies the buffer parameter to be retrieved; must be one
of GL_BUFFER_SIZE, GL_BUFFER_USAGE, GL_BUFFER_MAPPED,
GL_BUFFER_ACCESS_FLAGS, GL_BUFFER_MAP_LENGTH,
or GL_BUFFER_MAP_OFFSET
specifies an integer array for storing the returned parameter
values
pname
params
Additionally, you can retrieve the current pointer address for a mapped
buffer by calling the following function:
void glGetBufferPointerv (GLenum target , GLenum pname ,
GLvoid ** params )
target
specifies the buffer of the currently bound vertex buffer;
must be one of GL_ARRAY_BUFFER, GL_COPY_READ_BUFFER,
GL_COPY_WRITE_BUFFER, GL_ELEMENT_ARRAY_BUFFER,
GL_PIXEL_PACK_BUFFER, GL_PIXEL_UNPACK_BUFFER,
GL_TRANSFORM_FEEDBACK_BUFFER, or GL_UNIFORM_BUFFER
specifies the parameter to retrieve; must be
GL_BUFFER_MAP_POINTER
specifies a pointer for storing the returned address
pname
params
 
 
 
Search WWH ::




Custom Search