glGetBufferParameteriv Function

Syntax

GL_APICALL void GL_APIENTRY glGetBufferParameteriv(
     GLenum target,
     GLenum pname,
     GLint * params
);

Parameters

Name Description
in target Target vertex buffer object.
in pname Name of the parameter(s) to get.
out params Region storing the obtained parameters.

Return Values

No values are returned.

Description

Gets vertex buffer object parameters.

You can set target to the following values.

GL_ARRAY_BUFFER Vertex buffer.
GL_ELEMENT_ARRAY_BUFFER Index buffer.

You can set pname to the following values.

GL_BUFFER_SIZEGets the vertex buffer size.
GL_BUFFER_USAGEGets the vertex buffer's usage (only GL_STATIC_DRAW is supported).
GL_BUFFER_DATA_ADDR_DMPGets the address of vertex data for the bound vertex buffer object(s).

The following errors occur in this function.

GL_INVALID_OPERATION0 is bound to the current buffer object.
GL_INVALID_ENUMThe target or pname argument was set to an invalid value.

Revision History

2010/05/12
Added a value, GL_BUFFER_DATA_ADDR_DMP, that can be specified for pname.
2010/01/07
Initial version.

CONFIDENTIAL