glFramebufferTexture

attach a level of a texture object as a logical buffer to the currently bound framebuffer object

Signature

glFramebufferTexture( GLenum ( target ) , GLenum ( attachment ) , GLuint ( texture ) , GLint ( level ) )-> void
glFramebufferTexture( target , attachment , texture , level )
glFramebufferTexture1D( GLenum ( target ) , GLenum ( attachment ) , GLenum ( textarget ) , GLuint ( texture ) , GLint ( level ) )-> void
glFramebufferTexture1D( target , attachment , textarget , texture , level )
glFramebufferTexture2D( GLenum ( target ) , GLenum ( attachment ) , GLenum ( textarget ) , GLuint ( texture ) , GLint ( level ) )-> void
glFramebufferTexture2D( target , attachment , textarget , texture , level )
glFramebufferTexture3D( GLenum ( target ) , GLenum ( attachment ) , GLenum ( textarget ) , GLuint ( texture ) , GLint ( level ) , GLint ( layer ) )-> void
glFramebufferTexture3D( target , attachment , textarget , texture , level , zoffset )

Parameters

VariablesDescription
target
Specifies the framebuffer target. target must be GL_DRAW_FRAMEBUFFER , GL_READ_FRAMEBUFFER , or GL_FRAMEBUFFER . GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER .
attachment
Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENT i , GL_DEPTH_ATTACHMENT , GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT .
textarget
For glFramebufferTexture1D , glFramebufferTexture2D and glFramebufferTexture3D , specifies what type of texture is expected in the texture parameter, or for cube map textures, which face is to be attached.
texture
Specifies the texture object to attach to the framebuffer attachment point named by attachment .
level
Specifies the mipmap level of texture to attach.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glFramebufferTexture2D
OpenGLContext tests/shadow_2.py Lines: 87