Public Member Functions | Static Public Member Functions

glut::Framebuffer Class Reference

provides a framebuffer of fixed size for offscreen rendering. More...

#include <framebuffer.h>

Inheritance diagram for glut::Framebuffer:
Inheritance graph

List of all members.

Public Member Functions

virtual ~Framebuffer (void) throw ()
virtual int getWidth (void) const =0 throw ()
virtual int getHeight (void) const =0 throw ()
virtual void setupForRendering (int textureId, const render_context_t &rc)=0
virtual void endRendering (void)=0 throw ()

Static Public Member Functions

static smart_ptr< Framebuffercreate (int width, int height)

Detailed Description

provides a framebuffer of fixed size for offscreen rendering.

To use:

However, once you create a Framebuffer, it is recommended that you use a FramebufferContext to manage calling setupForRendering() and endRendering() automatically.

Definition at line 65 of file framebuffer.h.

Constructor & Destructor Documentation

glut::Framebuffer::~Framebuffer ( void   )  throw () [virtual]

Definition at line 40 of file framebuffer.cpp.

Member Function Documentation

virtual int glut::Framebuffer::getWidth ( void   )  const throw () [pure virtual]
virtual int glut::Framebuffer::getHeight ( void   )  const throw () [pure virtual]
virtual void glut::Framebuffer::setupForRendering ( int  textureId,
const render_context_t rc 
) [pure virtual]
virtual void glut::Framebuffer::endRendering ( void   )  throw () [pure virtual]
smart_ptr< Framebuffer > glut::Framebuffer::create ( int  width,
int  height 
) [static]

Definition at line 235 of file framebuffer.cpp.

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