glFramebufferRenderbuffer

attach a renderbuffer as a logical buffer to the currently bound framebuffer object

Signature

glFramebufferRenderbuffer( GLenum ( target ) , GLenum ( attachment ) , GLenum ( renderbuffertarget ) , GLuint ( renderbuffer ) )-> void
glFramebufferRenderbuffer( target , attachment , renderbuffertarget , renderbuffer )

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.
renderbuffertarget
Specifies the renderbuffer target and must be GL_RENDERBUFFER .
renderbuffer
Specifies the name of an existing renderbuffer object of type renderbuffertarget 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.

glFramebufferRenderbuffer
OpenGLContext tests/shadow_2.py Lines: 104