GLFRAMEBUFFERPARAMET(3G)
hey bestie, welcome to the GLFRAMEBUFFERPARAMET(3G) glow-up β it's giving OpenGL framebuffer parameter realness and I'm obsessed π
β¨ NAME β¨
glFramebufferParameteri, glNamedFramebufferParameteri β set a named parameter of a framebuffer object. periodt.
πΈ C SPECIFICATION πΈ
void glFramebufferParameteri(GLenum target, GLenum pname, GLint param);
void glNamedFramebufferParameteri(GLuint framebuffer, GLenum pname,
GLint param);
π PARAMETERS π
targetβ specifies the target to which the framebuffer is bound forglFramebufferParameteri.framebufferβ specifies the name of the framebuffer object forglNamedFramebufferParameteri.pnameβ specifies the framebuffer parameter to be modified.paramβ the new value for the parameter namedpname.
π¦ DESCRIPTION π¦
okay so 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 β no cap, that's the rule.
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. iykyk.
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βparamspecifies the assumed width for a framebuffer object with no attachments. if a framebuffer has attachments then the width of those attachments is used, otherwise the value ofGL_FRAMEBUFFER_DEFAULT_WIDTHis used for the framebuffer.parammust be greater than or equal to zero and less than or equal to the value ofGL_MAX_FRAMEBUFFER_WIDTH.GL_FRAMEBUFFER_DEFAULT_HEIGHTβparamspecifies the assumed height for a framebuffer object with no attachments. if a framebuffer has attachments then the height of those attachments is used, otherwise the value ofGL_FRAMEBUFFER_DEFAULT_HEIGHTis used for the framebuffer.parammust be greater than or equal to zero and less than or equal to the value ofGL_MAX_FRAMEBUFFER_HEIGHT.GL_FRAMEBUFFER_DEFAULT_LAYERSβparamspecifies the assumed number of layers for a framebuffer object with no attachments. if a framebuffer has attachments then the layer count of those attachments is used, otherwise the value ofGL_FRAMEBUFFER_DEFAULT_LAYERSis used for the framebuffer.parammust be greater than or equal to zero and less than or equal to the value ofGL_MAX_FRAMEBUFFER_LAYERS.GL_FRAMEBUFFER_DEFAULT_SAMPLESβparamspecifies the assumed number of samples in a framebuffer object with no attachments. if a framebuffer has attachments then the sample count of those attachments is used, otherwise the value ofGL_FRAMEBUFFER_DEFAULT_SAMPLESis used for the framebuffer.parammust be greater than or equal to zero and less than or equal to the value ofGL_MAX_FRAMEBUFFER_SAMPLE.GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONSβparamspecifies whether the framebuffer should assume identical sample locations and the same number of samples for all texels in the virtual image. ifparamis zero, then the implementation may vary the position or the count of samples within the virtual image from pixel to pixel, otherwise it will use the same sample position and count for all pixels in the virtual image.
π¨ ERRORS π¨
GL_INVALID_ENUMis generated byglFramebufferParameteriiftargetis not one of the accepted framebuffer targets.GL_INVALID_OPERATIONis generated byglFramebufferParameteriif the default framebuffer is bound totarget.GL_INVALID_OPERATIONis generated byglNamedFramebufferParameteriifframebufferis not the name of an existing framebuffer object.GL_INVALID_VALUEis generated ifpnameisGL_FRAMEBUFFER_DEFAULT_WIDTHandparamis less than zero or greater than the value ofGL_MAX_FRAMEBUFFER_WIDTH.GL_INVALID_VALUEis generated ifpnameisGL_FRAMEBUFFER_DEFAULT_HEIGHTandparamis less than zero or greater than the value ofGL_MAX_FRAMEBUFFER_HEIGHT.GL_INVALID_VALUEis generated ifpnameisGL_FRAMEBUFFER_DEFAULT_LAYERSandparamis less than zero or greater than the value ofGL_MAX_FRAMEBUFFER_LAYERS.GL_INVALID_VALUEis generated ifpnameisGL_FRAMEBUFFER_DEFAULT_SAMPLESandparamis less than zero or greater than the value ofGL_MAX_FRAMEBUFFER_SAMPLES.
π ASSOCIATED GETS π
glGetFramebufferParameteriv.
π VERSION SUPPORT π
the original table has Function / Feature Name and OpenGL Version columns for OpenGL 2.0 through 4.5. here's the translated vibe check:
glFramebufferParameteriβ-for OpenGL 2.0, 2.1, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1, and 4.2;βfor OpenGL 4.3, 4.4, and 4.5.glNamedFramebufferParameteriβ-for OpenGL 2.0, 2.1, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1, 4.2, 4.3, and 4.4;βfor OpenGL 4.5.
π 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
okay bye bestie π
this page's source/version is [FIXME: source], it's dated 08/09/2021, and the manual name is GLFRAMEBUFFERPARAMET(3G) β mwah! π
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms