![]() | FramebufferAttachRenderbuffer Method |
Namespace: Ooogles
public void AttachRenderbuffer( FramebufferAttachment attachment, Renderbuffer renderbuffer )
Exception | Condition |
---|---|
GLException | InvalidOperation if no framebuffer is bound. |
Note: if a renderbuffer object is deleted while its image is attached to the currently bound framebuffer, then it is as if DetachRenderbuffer(FramebufferAttachment) had been called for the attachment point to which this image was attached in the currently bound framebuffer object. In other words, the renderbuffer image is detached from the currently bound framebuffer. Note that the renderbuffer image is specifically not detached from any non-bound framebuffers. Detaching the image from any non-bound framebuffers is the responsibility of the application.
Note: in DEBUG mode with assertions enabled, an error will be logged to the debug console if this framebuffer is not bound.
OpenGL API: glFramebufferRenderbuffer