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

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...
 

Detailed Description

This class wraps an OpenGL framebuffer object.

Definition at line 64 of file framebuffer_object.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

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.

Parameters
bufferThe 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.

Parameters
textureThe texture to set.

Definition at line 75 of file framebuffer_object.cpp.


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