Click or drag to resize

FramebufferAttachRenderbuffer Method

Attach a renderbuffer to this framebuffer.

Namespace:  Ooogles
Assembly:  Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void AttachRenderbuffer(
	FramebufferAttachment attachment,
	Renderbuffer renderbuffer
)

Parameters

attachment
Type: OooglesFramebufferAttachment
the attachment point to which renderbuffer should be attached.
renderbuffer
Type: OooglesRenderbuffer
the renderbuffer to attach.
Exceptions
ExceptionCondition
GLExceptionInvalidOperation if no framebuffer is bound.
Remarks
This method attaches the renderbuffer specified by renderbuffer as one of the logical buffers of the currently bound framebuffer object. attachment specifies whether the renderbuffer should be attached to the framebuffer object's color, depth, or stencil buffer. A renderbuffer may not be attached to the default framebuffer object name 0.

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

See Also