nux-1.14.0
nux::GLRenderbuffer Class Reference

#include <NuxGraphics/GLDeviceFrameBufferObject.h>

List of all members.

Public Member Functions

 GLRenderbuffer ()
 Ctors/Dtors.
 GLRenderbuffer (GLenum internalFormat, int width, int height)
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

Definition at line 200 of file GLDeviceFrameBufferObject.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends