glGetRenderbufferParameteriv Function

Syntax

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

Arguments

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.

Return Values

There is no return value.

Description

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_WIDTHGets the render buffer's width (in pixels).
GL_RENDERBUFFER_HEIGHTGets the render buffer's height (in pixels).
GL_RENDERBUFFER_INTERNAL_FORMATGets the render buffer's internal format.
GL_RENDERBUFFER_RED_SIZEGets the number of bits in the render buffer's red component.
GL_RENDERBUFFER_GREEN_SIZEGets the number of bits in the render buffer's green component.
GL_RENDERBUFFER_BLUE_SIZEGets the number of bits in the render buffer's blue component.
GL_RENDERBUFFER_ALPHA_SIZEGets the number of bits in the render buffer's alpha component.
GL_RENDERBUFFER_DEPTH_SIZEGets the number of bits in the render buffer's depth component.
GL_RENDERBUFFER_STENCIL_SIZEGets the number of bits in the render buffer's stencil component.
GL_RENDERBUFFER_DATA_ADDR_DMPGets the address of the render buffer.

The following errors occur in this function.

GL_INVALID_ENUMThe target or pname argument was set to an invalid value.
GL_INVALID_OPERATIONRender buffer object 0 is bound.

Revision History

2010/07/07
Added GL_RENDERBUFFER_DATA_ADDR_DMP to param.
2010/01/07
Initial version.

CONFIDENTIAL