table of contents
GLFRAMEBUFFERPARAMET(3G) | [FIXME: manual] | GLFRAMEBUFFERPARAMET(3G) |
NAME¶
glFramebufferParameteri, glNamedFramebufferParameteri - set a named parameter of a framebuffer object
C SPECIFICATION¶
void glFramebufferParameteri(GLenum target, GLenum pname, GLint param);
void glNamedFramebufferParameteri(GLuint framebuffer, GLenum pname, GLint param);
PARAMETERS¶
target
framebuffer
pname
param
DESCRIPTION¶
glFramebufferParameteri and glNamedFramebufferParameteri modify the value of the parameter named pname in the specified framebuffer object. There are no modifiable parameters of the default draw and read framebuffer, so they are not valid targets of these commands.
For glFramebufferParameteri, the framebuffer object is that bound to target, which must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER.
For glNamedFramebufferParameteri, framebuffer is the name of the framebuffer object.
pname specifies the parameter to be modified. The following values are accepted:
GL_FRAMEBUFFER_DEFAULT_WIDTH
GL_FRAMEBUFFER_DEFAULT_HEIGHT
GL_FRAMEBUFFER_DEFAULT_LAYERS
GL_FRAMEBUFFER_DEFAULT_SAMPLES
GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS
ERRORS¶
GL_INVALID_ENUM is generated by glFramebufferParameteri if target is not one of the accepted framebuffer targets.
GL_INVALID_OPERATION is generated by glFramebufferParameteri if the default framebuffer is bound to target.
GL_INVALID_OPERATION is generated by glNamedFramebufferParameteri if framebuffer is not the name of an existing framebuffer object.
GL_INVALID_VALUE is generated if pname is GL_FRAMEBUFFER_DEFAULT_WIDTH and param is less than zero or greater than the value of GL_MAX_FRAMEBUFFER_WIDTH.
GL_INVALID_VALUE is generated if pname is GL_FRAMEBUFFER_DEFAULT_HEIGHT and param is less than zero or greater than the value of GL_MAX_FRAMEBUFFER_HEIGHT.
GL_INVALID_VALUE is generated if pname is GL_FRAMEBUFFER_DEFAULT_LAYERS and param is less than zero or greater than the value of GL_MAX_FRAMEBUFFER_LAYERS.
GL_INVALID_VALUE is generated if pname is GL_FRAMEBUFFER_DEFAULT_SAMPLES and param is less than zero or greater than the value of GL_MAX_FRAMEBUFFER_SAMPLES.
ASSOCIATED GETS¶
glGetFramebufferParameteriv.
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 |
glFramebufferParameteri | - | - | - | - | - | - | - | - | - | ✔ | ✔ | ✔ |
glNamedFramebufferParameteri | - | - | - | - | - | - | - | - | - | - | - | ✔ |
SEE ALSO¶
glBindFramebuffer(), glCreateFramebuffers(), glFramebufferRenderbuffer(), glFramebufferTexture(), glGenFramebuffers(), glGetFramebufferParameter()
COPYRIGHT¶
Copyright © 2013-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 © 2013-2014 Khronos Group
08/09/2021 | [FIXME: source] |