Raised if an error occurs at creation or during an attachment
Module OgamlGraphics.Framebuffer
Framebuffer creation and manipulationThis module provides a safe way to create framebuffer objects (FBO) and attach textures to them.
Type of a framebuffer object
Creates a framebuffer from a valid context
Attaches a valid color attachment to a framebuffer at a given index. Raises
See : OgamlGraphics.Attachment.ColorAttachable
See : OgamlGraphics.Context
Error
if the index is greater than the maximum number of color attachments allowed by the context, or if the attachment is larger than the maximum size allowed by the context.See : OgamlGraphics.Attachment.ColorAttachable
See : OgamlGraphics.Context
Attaches a valid depth attachment to a framebuffer. Raises
See : OgamlGraphics.Attachment.DepthAttachable
See : OgamlGraphics.Context
Error
if the attachment is larger than the maximum size allowed by the context.See : OgamlGraphics.Attachment.DepthAttachable
See : OgamlGraphics.Context
Attaches a valid stencil attachment to a framebuffer. Raises
See : OgamlGraphics.Attachment.StencilAttachable
See : OgamlGraphics.Context
Error
if the attachment is larger than the maximum size allowed by the context.See : OgamlGraphics.Attachment.StencilAttachable
See : OgamlGraphics.Context
Attaches a valid depth and stencil attachment to a framebuffer. Raises
See : OgamlGraphics.Attachment.DepthStencilAttachable
See : OgamlGraphics.Context
Error
if the attachment is larger than the maximum size allowed by the context.See : OgamlGraphics.Attachment.DepthStencilAttachable
See : OgamlGraphics.Context
Returns true iff the FBO has a color attachment
Returns true iff the FBO has a depth attachment
Returns true iff the FBO has a stencil attachment
Returns the size of an FBO, that is the intersection of the sizes of its attachments. Returns the maximal allowed size if nothing has been attached to this FBO
Returns the GL context associated to the FBO
Clears the FBO
Binds the FBO for drawing. Internal use only.