table of contents
GLFRAMEBUFFERTEXTURE(3G) | OpenGL Manual | GLFRAMEBUFFERTEXTURE(3G) |
NAME¶
glFramebufferTextureLayer - attach a single layer of a texture to a framebuffer
C SPECIFICATION¶
void glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
PARAMETERS¶
target
attachment
texture
level
layer
DESCRIPTION¶
glFramebufferTextureLayer operates like glFramebufferTexture(), except that only a single layer of the texture level, given by layer, is attached to the attachment point. If texture is not zero, layer must be greater than or equal to zero. texture must either be zero or the name of an existing three-dimensional texture, one- or two-dimensional array texture, or multisample array texture.
ERRORS¶
GL_INVALID_ENUM is generated if target is not one of the accepted tokens.
GL_INVALID_ENUM is generated if attachment is not one of the accepted tokens.
GL_INVALID_VALUE is generated if texture is not zero or the name of an existing texture object.
GL_INVALID_VALUE is generated if texture is not zero and layer is negative.
GL_INVALID_OPERATION is generated if zero is bound to target.
GL_INVALID_OPERATION is generated if texture is not zero or the name of an existing cube map texture.
SEE ALSO¶
glGenFramebuffers(), glBindFramebuffer(), glGenRenderbuffers(), glFramebufferTexture(), glFramebufferTextureFace()
COPYRIGHT¶
Copyright © 2010 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 |