GLIP-Lib
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
Glip::CoreGL::HdlRenderBuffer Class Reference

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.
 

Detailed Description

Object handle for OpenGL Render Buffer Objects.

This class can manage a Render Buffer Object.

Constructor & Destructor Documentation

HdlRenderBuffer::HdlRenderBuffer ( const GLenum &  _internalFormat,
int  _width,
int  _height 
)

Constructor.

Parameters
_internalFormatInternal format of this render buffer (GL_RGBA4, GL_RGB565, GL_RGB5_A1, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_STENCIL_INDEX, GL_STENCIL_INDEX8, ...).
_widthWidth of the buffer.
_heightHeight of the buffer.

Member Function Documentation

int HdlRenderBuffer::getHeight ( void  ) const

Get the height of this render buffer object.

Returns
The height of this object.
GLuint HdlRenderBuffer::getID ( void  ) const

Get the ID of the render buffer object.

Returns
The GL id of this objet.
GLenum HdlRenderBuffer::getInternalFormat ( void  ) const

Get the internal format of this render buffer.

Returns
The internal format of this object (GL_RGBA4, GL_RGB565, GL_RGB5_A1, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_STENCIL_INDEX, GL_STENCIL_INDEX8, ...).
int HdlRenderBuffer::getWidth ( void  ) const

Get the width of this render buffer object.

Returns
The width of this object.

The documentation for this class was generated from the following files: