nux-0.9.48

nux::GLRenderbuffer Class Reference

#include <NuxGraphics/GLDeviceFrameBufferObject.h>

Public Member Functions

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

Static Public Member Functions

static GLint GetMaxSize ()

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. Note that as of 7/1/05, NVIDIA drivers to do not support stencil Renderbuffers.

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


Constructor & Destructor Documentation

nux::GLRenderbuffer::GLRenderbuffer ( )

Ctors/Dtors.

nux::GLRenderbuffer::GLRenderbuffer ( GLenum  internalFormat,
int  width,
int  height 
)
nux::GLRenderbuffer::~GLRenderbuffer ( )

Member Function Documentation

void nux::GLRenderbuffer::Bind ( )
GLuint nux::GLRenderbuffer::GetId ( ) const
static GLint nux::GLRenderbuffer::GetMaxSize ( ) [static]
void nux::GLRenderbuffer::Set ( GLenum  internalFormat,
int  width,
int  height 
)
void nux::GLRenderbuffer::Unbind ( )

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