SimpleGL  1.1.0
A framework for platform independent rendering
Public Member Functions | List of all members
sgl::Renderbuffer Class Reference

This class wraps an OpenGL renderbuffer object. More...

#include <framebuffer_object.hpp>

Public Member Functions

 Renderbuffer (void)
 Generates a new renderbuffer object. More...
 
 ~Renderbuffer (void)
 Deletes the renderbuffer object. More...
 
GLuint getHandle ()
 Returns the handle of the renderbuffer object. More...
 
void bind ()
 Binds the renderbuffer object. More...
 
void storage (int width, int height)
 Allocates data storage, format and dimensions of the renderbuffer object. More...
 

Detailed Description

This class wraps an OpenGL renderbuffer object.

Definition at line 24 of file framebuffer_object.hpp.

Constructor & Destructor Documentation

sgl::Renderbuffer::Renderbuffer ( void  )

Generates a new renderbuffer object.

Definition at line 13 of file framebuffer_object.cpp.

sgl::Renderbuffer::~Renderbuffer ( void  )

Deletes the renderbuffer object.

Definition at line 17 of file framebuffer_object.cpp.

Member Function Documentation

void sgl::Renderbuffer::bind ( )

Binds the renderbuffer object.

Definition at line 30 of file framebuffer_object.cpp.

GLuint sgl::Renderbuffer::getHandle ( )

Returns the handle of the renderbuffer object.

Returns
The handle of the renderbuffer object.

Definition at line 26 of file framebuffer_object.cpp.

void sgl::Renderbuffer::storage ( int  width,
int  height 
)

Allocates data storage, format and dimensions of the renderbuffer object.

Parameters
widthThe width of the renderbuffer object in pixel.
heightThe height of the renderbuffer object in pixel.

Definition at line 41 of file framebuffer_object.cpp.


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