glGetBufferParameteriv Function
GL_APICALL void GL_APIENTRY glGetBufferParameteriv(
GLenum target,
GLenum pname,
GLint * params
);
| Name | Description | |
|---|---|---|
| in | target | Target vertex buffer object. |
| in | pname | Name of the parameter(s) to get. |
| out | params | Region storing the obtained parameters. |
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_SIZE | Gets the vertex buffer size. |
|---|---|
GL_BUFFER_USAGE | Gets the vertex buffer's usage (only GL_STATIC_DRAW is supported). |
GL_BUFFER_DATA_ADDR_DMP | Gets the address of vertex data for the bound vertex buffer object(s). |
The following errors occur in this function.
GL_INVALID_OPERATION | 0 is bound to the current buffer object. |
|---|---|
GL_INVALID_ENUM | The target or pname argument was set to an invalid value. |
GL_BUFFER_DATA_ADDR_DMP, that can be specified for pname.CONFIDENTIAL