table of contents
GLGETFRAMEBUFFERPARA(3G) | [FIXME: manual] | GLGETFRAMEBUFFERPARA(3G) |
NAME¶
glGetFramebufferParameteriv, glGetNamedFramebufferParameteriv - query a named parameter of a framebuffer object
C SPECIFICATION¶
void glGetFramebufferParameteriv(GLenum target, GLenum pname, GLint *params);
void glGetNamedFramebufferParameteriv(GLuint framebuffer, GLenum pname, GLint *param);
PARAMETERS¶
target
framebuffer
pname
params
DESCRIPTION¶
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:
GL_FRAMEBUFFER_DEFAULT_WIDTH
GL_FRAMEBUFFER_DEFAULT_HEIGHT
GL_FRAMEBUFFER_DEFAULT_LAYERS
GL_FRAMEBUFFER_DEFAULT_SAMPLES
GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS
The following parameters can be queried for both default framebuffers and framebuffer objects:
GL_DOUBLEBUFFER
GL_IMPLEMENTATION_COLOR_READ_FORMAT
GL_IMPLEMENTATION_COLOR_READ_TYPE
GL_SAMPLES
GL_SAMPLE_BUFFERS
GL_STEREO
NOTES¶
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.
ERRORS¶
GL_INVALID_ENUM is generated by glGetFramebufferParameteriv if target is not one of the accepted framebuffer targets.
GL_INVALID_OPERATION is generated by glGetNamedFramebufferAttachmentParameteriv if framebuffer is not zero or the name of an existing framebuffer object.
GL_INVALID_ENUM is generated if pname is not one of the accepted parameter names.
GL_INVALID_OPERATION is generated if a default framebuffer is queried, and pname is not one of GL_DOUBLEBUFFER, GL_IMPLEMENTATION_COLOR_READ_FORMAT, GL_IMPLEMENTATION_COLOR_READ_TYPE, GL_SAMPLES, GL_SAMPLE_BUFFERS or GL_STEREO.
ASSOCIATED GETS¶
glGetFramebufferAttachmentParameter()
VERSION SUPPORT¶
OpenGL Version | ||||||||||||
Function / Feature Name | 2.0 | 2.1 | 3.0 | 3.1 | 3.2 | 3.3 | 4.0 | 4.1 | 4.2 | 4.3 | 4.4 | 4.5 |
glGetFramebufferParameteriv | - | - | - | - | - | - | - | - | - | ✔ | ✔ | ✔ |
glGetNamedFramebufferParameteriv | - | - | - | - | - | - | - | - | - | - | - | ✔ |
SEE ALSO¶
glFramebufferParameteri(), glGetFramebufferAttachmentParameter()
COPYRIGHT¶
Copyright © 2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
COPYRIGHT¶
Copyright © 2014 Khronos Group
04/12/2021 | [FIXME: source] |