glGetRenderbufferParameteriv Function
GL_APICALL void GL_APIENTRY glGetRenderbufferParameteriv(
GLenum target,
GLenum pname,
GLint * params
);
| Name | Description | |
|---|---|---|
| in | target | The render buffer object target. |
| in | pname | Name of the parameter(s) to get. |
| out | params | Region storing the obtained parameters. |
Gets parameters for the render buffer object that is currently bound.
target is specified as GL_RENDERBUFFER.
You can specify the following values for pname.
GL_RENDERBUFFER_WIDTH | Gets the render buffer's width (in pixels). |
|---|---|
GL_RENDERBUFFER_HEIGHT | Gets the render buffer's height (in pixels). |
GL_RENDERBUFFER_INTERNAL_FORMAT | Gets the render buffer's internal format. |
GL_RENDERBUFFER_RED_SIZE | Gets the number of bits in the render buffer's red component. |
GL_RENDERBUFFER_GREEN_SIZE | Gets the number of bits in the render buffer's green component. |
GL_RENDERBUFFER_BLUE_SIZE | Gets the number of bits in the render buffer's blue component. |
GL_RENDERBUFFER_ALPHA_SIZE | Gets the number of bits in the render buffer's alpha component. |
GL_RENDERBUFFER_DEPTH_SIZE | Gets the number of bits in the render buffer's depth component. |
GL_RENDERBUFFER_STENCIL_SIZE | Gets the number of bits in the render buffer's stencil component. |
GL_RENDERBUFFER_DATA_ADDR_DMP | Gets the address of the render buffer. |
The following errors occur in this function.
GL_INVALID_ENUM | The target or pname argument was set to an invalid value. |
|---|---|
GL_INVALID_OPERATION | Render buffer object 0 is bound. |
GL_RENDERBUFFER_DATA_ADDR_DMP to param.
CONFIDENTIAL