SimpleGL
1.1.0
A framework for platform independent rendering
|
This class wraps an OpenGL framebuffer object. More...
#include <framebuffer_object.hpp>
Public Member Functions | |
FramebufferGL (void) | |
Generates a new framebuffer object. More... | |
~FramebufferGL (void) | |
Deletes the framebuffer object. More... | |
GLuint | getHandle () |
Returns the handle of the framebuffer object. More... | |
void | bind () |
Binds the framebuffer object. More... | |
void | setTexture (Texture *texture) |
Sets a texture object as a logical buffer to the framebuffer object. More... | |
void | setRenderbuffer (Renderbuffer *buffer) |
Sets a renderbuffer object as a logical buffer to the framebuffer object. More... | |
This class wraps an OpenGL framebuffer object.
Definition at line 64 of file framebuffer_object.hpp.
sgl::FramebufferGL::FramebufferGL | ( | void | ) |
Generates a new framebuffer object.
Definition at line 47 of file framebuffer_object.cpp.
sgl::FramebufferGL::~FramebufferGL | ( | void | ) |
Deletes the framebuffer object.
Definition at line 51 of file framebuffer_object.cpp.
void sgl::FramebufferGL::bind | ( | ) |
Binds the framebuffer object.
Definition at line 64 of file framebuffer_object.cpp.
GLuint sgl::FramebufferGL::getHandle | ( | ) |
Returns the handle of the framebuffer object.
Definition at line 60 of file framebuffer_object.cpp.
void sgl::FramebufferGL::setRenderbuffer | ( | Renderbuffer * | buffer | ) |
Sets a renderbuffer object as a logical buffer to the framebuffer object.
buffer | The renderbuffer object to set. |
Definition at line 79 of file framebuffer_object.cpp.
void sgl::FramebufferGL::setTexture | ( | Texture * | texture | ) |
Sets a texture object as a logical buffer to the framebuffer object.
texture | The texture to set. |
Definition at line 75 of file framebuffer_object.cpp.