Represents an OpenGL Framebuffer Object.

FBOs are used for doing off-screen rendering, including rendering to a texture. An FBO can capture draw commands that would normally go to the screen, and can be used to implement a large variety of techniques, particularly post-processing effects like blurs, depth-of-field and the like.

FBOs are formally specified in the extension GL_EXT_framebuffer_object.


Public Member Functions

  • ~Fbo ()

Static Public Member Functions


Protected Member Functions

  • Fbo (int width, int height, const Format &format)
  • init ()
  • initMultisamplingSettings (bool *useMsaa, bool *useCsaa, Format *format)
  • prepareAttachments (const Format &format, bool multisampling)
  • attachAttachments ()
  • initMultisample (const Format &format)
  • updateMipmaps (GLenum attachment) const
  • bool
    checkStatus (class FboExceptionInvalidSpecification *resultExc)
  • setDrawBuffers (GLuint fbId, const std::map< GLenum, RenderbufferRef > &attachmentsBuffer, const std::map< GLenum, TextureBaseRef > &attachmentsTexture)

Protected Attributes


Friends

  • friend std::ostream &
    operator<< (std::ostream &os, const Fbo &rhs)