eXperiment robotics framework

Renderbuffer Class Reference

Renderbuffer Class. This class encapsulates the Renderbuffer OpenGL object described in the FramebufferObject (FBO) OpenGL spec. See the official spec at: http://oss.sgi.com/projects/ogl-sample/registry/EXT/framebuffer_object.txt for complete details. More...

#include <erf/renderbuffer.h>

List of all members.

Public Member Functions

 Renderbuffer ()
 Ctors/Dtors.
 Renderbuffer (GLenum internalFormat, int width, int height)
 ~Renderbuffer ()
void Bind ()
void Unbind ()
void Set (GLenum internalFormat, int width, int height)
GLuint GetId () const

Static Public Member Functions

static GLint GetMaxSize ()

Static Protected Member Functions

static GLuint _CreateBufferId ()

Protected Attributes

GLuint m_bufId


Detailed Description

Renderbuffer Class. This class encapsulates the Renderbuffer OpenGL object described in the FramebufferObject (FBO) OpenGL spec. See the official spec at: http://oss.sgi.com/projects/ogl-sample/registry/EXT/framebuffer_object.txt for complete details.

A "Renderbuffer" is a chunk of GPU memory used by FramebufferObjects to represent "traditional" framebuffer memory (depth, stencil, and color buffers). By "traditional," we mean that the memory cannot be bound as a texture. With respect to GPU shaders, Renderbuffer memory is "write-only." Framebuffer operations such as alpha blending, depth test, alpha test, stencil test, etc. read from this memory in post-fragement-shader (ROP) operations.

The most common use of Renderbuffers is to create depth and stencil buffers.

Usage Notes: 1) "internalFormat" can be any of the following: Valid OpenGL internal formats beginning with: RGB, RGBA, DEPTH_COMPONENT

or a stencil buffer format (not currently supported in NVIDIA drivers as of 7/1/05). STENCIL_INDEX1_EXT STENCIL_INDEX4_EXT STENCIL_INDEX8_EXT STENCIL_INDEX16_EXT

Definition at line 39 of file renderbuffer.h.


Constructor & Destructor Documentation

Renderbuffer::Renderbuffer (  ) 

Ctors/Dtors.

Renderbuffer::Renderbuffer ( GLenum  internalFormat,
int  width,
int  height 
)

Renderbuffer::~Renderbuffer (  ) 


Member Function Documentation

void Renderbuffer::Bind (  ) 

void Renderbuffer::Unbind (  ) 

void Renderbuffer::Set ( GLenum  internalFormat,
int  width,
int  height 
)

GLuint Renderbuffer::GetId (  )  const

static GLint Renderbuffer::GetMaxSize (  )  [static]

static GLuint Renderbuffer::_CreateBufferId (  )  [static, protected]


Member Data Documentation

GLuint Renderbuffer::m_bufId [protected]

Definition at line 55 of file renderbuffer.h.


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

The miarn project - written by Joao Xavier