Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <FramebufferObject.hpp>

Public Member Functions | |
| ~FBORenderTarget () | |
| virtual const char * | className () |
| Returns the name of the class. | |
| virtual void | bindFramebuffer () |
| Makes the framebuffer the current rendering target calling glBindFramebuffer(GL_FRAMEBUFFER, FBORenderTarget::handle()) and initializes all the previously defined attachment points. | |
| GLenum | checkFramebufferStatus () |
| Returns 0 if no FBO support is found otherwise returns the value obtained from VL_glCheckFramebufferStatus(). | |
| void | printFramebufferError (GLenum status) const |
| void | create () |
| void | destroy () |
| void | addColorAttachment (EAttachmentPoint color_attachment, FBOAttachmentAbstract *attachment) |
| void | addTextureAttachment (EAttachmentPoint color_attachment, FBOAttachmentAbstract *attachment) |
| void | addDepthAttachment (FBOAttachmentAbstract *attachment) |
| void | addStencilAttachment (FBOAttachmentAbstract *attachment) |
| const std::map < EAttachmentPoint, ref < FBOAttachmentAbstract > > & | fboAttachments () const |
| void | removeAttachment (FBOAttachmentAbstract *attachment) |
| void | removeAttachment (EAttachmentPoint attach_point) |
| void | removeAllAttachments () |
| unsigned int | handle () const |
Public Attributes | |
| std::map< EAttachmentPoint, ref< FBOAttachmentAbstract > > | mFBOAttachments |
| unsigned int | mHandle |
Friends | |
| class | OpenGLContext |
An FBORenderTarget belongs to one and only one OpenGLContext and can be created using the OpenGLContext::createFBORenderTarget() method. To render to a FBORenderTarget use the Rendering::setRenderTarget() function.
All the renderbuffer attachments must specify the same number of samples.
| vl::FBORenderTarget::~FBORenderTarget | ( | ) | [inline] |
| virtual const char* vl::FBORenderTarget::className | ( | ) | [inline, virtual] |
| void FBORenderTarget::bindFramebuffer | ( | ) | [virtual] |
Makes the framebuffer the current rendering target calling glBindFramebuffer(GL_FRAMEBUFFER, FBORenderTarget::handle()) and initializes all the previously defined attachment points.
Reimplemented from vl::RenderTarget.
| GLenum FBORenderTarget::checkFramebufferStatus | ( | ) |
Returns 0 if no FBO support is found otherwise returns the value obtained from VL_glCheckFramebufferStatus().
| void FBORenderTarget::printFramebufferError | ( | GLenum | status | ) | const |
| void vl::FBORenderTarget::create | ( | ) | [inline] |
| void vl::FBORenderTarget::destroy | ( | ) | [inline] |
| void FBORenderTarget::addColorAttachment | ( | EAttachmentPoint | color_attachment, | |
| FBOAttachmentAbstract * | attachment | |||
| ) |
| void FBORenderTarget::addTextureAttachment | ( | EAttachmentPoint | color_attachment, | |
| FBOAttachmentAbstract * | attachment | |||
| ) |
| void FBORenderTarget::addDepthAttachment | ( | FBOAttachmentAbstract * | attachment | ) |
| void FBORenderTarget::addStencilAttachment | ( | FBOAttachmentAbstract * | attachment | ) |
| const std::map< EAttachmentPoint, ref<FBOAttachmentAbstract> >& vl::FBORenderTarget::fboAttachments | ( | ) | const [inline] |
| void FBORenderTarget::removeAttachment | ( | FBOAttachmentAbstract * | attachment | ) |
| void FBORenderTarget::removeAttachment | ( | EAttachmentPoint | attach_point | ) |
| void FBORenderTarget::removeAllAttachments | ( | ) |
| unsigned int vl::FBORenderTarget::handle | ( | ) | const [inline] |
friend class OpenGLContext [friend] |
Reimplemented from vl::RenderTarget.
| unsigned int vl::FBORenderTarget::mHandle |