table of contents
GLFRAMEBUFFERPARAMET(3G) | OpenGL Manual | GLFRAMEBUFFERPARAMET(3G) |
NAME¶
glFramebufferParameteri - set a named parameter of a framebuffer
C SPECIFICATION¶
void glFramebufferParameteri(GLenum target, GLenum pname, GLint param);
PARAMETERS¶
target
pname
param
DESCRIPTION¶
glFramebufferParameteri modifies the current value of the parameter named pname in the framebuffer bound to target. target must be GL_READ_FRAMEBFUFFER, GL_DRAW_FRAMEBUFFER or GL_FRAMEBUFFER. The token GL_FRAMEBUFFER is treated as GL_DRAW_FRAMEBUFFER. A non-default framebuffer must be bound to target.
pname specifies the parameter to be modified. The following symbols are accepted in pname:
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 if target is not one of the accepted framebuffer targets.
GL_INVAILD_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_INVAILD_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_INVAILD_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_INVAILD_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.
GL_INVALID_OPERATION is generated if the default framebuffer is bound to target.
ASSOCIATED GETS¶
glGetFramebufferParameteriv().
SEE ALSO¶
glVertexAttribBinding(), glVertexAttribFormat(), glVertexAttribPointer(), glVertexBindingDivisor().
COPYRIGHT¶
Copyright © 2012 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/.
AUTHORS¶
opengl.org
05/02/2014 | opengl.org |