NvWritableFB Class Reference

Object representing an FBO or the main framebuffer. More...

#include <NvSimpleFBO.h>

Inheritance diagram for NvWritableFB:

NvSimpleFBO

List of all members.

Public Member Functions

 NvWritableFB (GLuint w, GLuint h)
 Base constructor Creates an object that (by default) represents the main framebuffer (FBO 0).
 ~NvWritableFB ()
 Destructor Deletes any associated (nonzero) FBO.
void bind ()
 Binds the calling framebuffer and sets the viewport based on the sizes cached by the object.

Public Attributes

GLuint fbo
 The GL framebuffer object handle.
GLuint width
 the width in pixels
GLuint height
 the height in pixels


Detailed Description

Object representing an FBO or the main framebuffer.

An object of this type can represent the back-buffer or FBO 0. The back-buffer is not strictly an FBO but this allows some abstraction between the back-buffer and FBOs.


Constructor & Destructor Documentation

NvWritableFB::NvWritableFB ( GLuint  w,
GLuint  h 
) [inline]

Base constructor Creates an object that (by default) represents the main framebuffer (FBO 0).

Parameters:
[in] w the width in pixels
[in] h the height in pixels


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