#include <AC>
Public Member Functions | |
| FBO () | |
| Default constructor. | |
| ~FBO () | |
| Destructor. | |
| void | init () |
| function to generate the framebuffer object | |
| void | attachTexture2D (GLenum _attachment, GLuint _texture) |
| function to attach a texture to fbo | |
| void | addDepthBuffer (GLuint _width, GLuint _height) |
| function to add a depth buffer to the fbo | |
| void | addStencilBuffer (GLuint _width, GLuint _height) |
| function to add a stencil buffer to the fbo | |
| bool | bind () |
| bind the fbo and sets it as rendertarget | |
| void | unbind () |
| unbind fbo, go to normal rendering mode | |
| bool | checkFramebufferStatus () |
| function to check the framebuffer status | |
Private Attributes | |
| GLuint | fbo_ |
| handle of frame buffer object | |
| GLuint | depthbuffer_ |
| depthbuffer | |
| GLuint | stencilbuffer_ |
| stencilbuffer | |
/.../FBO.hh>
Brief Description.
A more elaborate description follows.
Definition at line 39 of file FBO.hh.