Object handle for OpenGL Render Buffer Objects. More...
#include <HdlFBO.hpp>
Public Member Functions | |
HdlRenderBuffer (const GLenum &_internalFormat, int _width, int _height) | |
Constructor. More... | |
GLuint | getID (void) const |
Get the ID of the render buffer object. More... | |
GLenum | getInternalFormat (void) const |
Get the internal format of this render buffer. More... | |
int | getWidth (void) const |
Get the width of this render buffer object. More... | |
int | getHeight (void) const |
Get the height of this render buffer object. More... | |
void | bind (void) |
Bind this render buffer object. | |
Static Public Member Functions | |
static void | unbind (void) |
Unbind any render buffer object. | |
Object handle for OpenGL Render Buffer Objects.
This class can manage a Render Buffer Object.
HdlRenderBuffer::HdlRenderBuffer | ( | const GLenum & | _internalFormat, |
int | _width, | ||
int | _height | ||
) |
Constructor.
_internalFormat | Internal format of this render buffer (GL_RGBA4, GL_RGB565, GL_RGB5_A1, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_STENCIL_INDEX, GL_STENCIL_INDEX8, ...). |
_width | Width of the buffer. |
_height | Height of the buffer. |
int HdlRenderBuffer::getHeight | ( | void | ) | const |
Get the height of this render buffer object.
GLuint HdlRenderBuffer::getID | ( | void | ) | const |
Get the ID of the render buffer object.
GLenum HdlRenderBuffer::getInternalFormat | ( | void | ) | const |
Get the internal format of this render buffer.
int HdlRenderBuffer::getWidth | ( | void | ) | const |
Get the width of this render buffer object.