glGetFramebufferParameteriv

glGetFramebufferParameter: man4/glGetFramebufferParameter.xml

glGetFramebufferParameteriv and glGetNamedFramebufferParameteriv query parameters of a specified framebuffer object. For glGetFramebufferParameteriv, the framebuffer object is that bound to target, which must be one of GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER. Default framebuffers may also be queried if bound to target. For glGetNamedFramebufferParameteriv, framebuffer is the name of the framebuffer object. If framebuffer is zero, the default draw framebuffer is queried. Upon successful return, param will contain the value of the framebuffer parameter specified by pname, as described below. The following parameters can only be queried for framebuffer objects: The following parameters can be queried for both default framebuffers and framebuffer objects:

Queries of default framebuffers are supported only if the GL version is 4.5 or higher. Otherwise, an GL_INVALID_OPERATION error is generated. Queries of the framebuffer-dependent parameters GL_DOUBLEBUFFER, GL_IMPLEMENTATION_COLOR_READ_FORMAT, GL_IMPLEMENTATION_COLOR_READ_TYPE, GL_SAMPLES, GL_SAMPLE_BUFFERS and GL_STEREO are supported only if the GL version is 4.5 or higher. The framebuffer-dependent state GL_SAMPLE_POSITION cannot be queried with these commands.

@OpenGL_Version(OGLIntroducedIn.V4P3)
@OpenGL_Extension("GL_ARB_framebuffer_no_attachments")
fn_glGetFramebufferParameteriv glGetFramebufferParameteriv;

See Also

glFramebufferParameteri, glGetFramebufferAttachmentParameter

Meta