Public Member Functions

glut::FramebufferContext Class Reference

simple helper class--put this on the stack and it will automatically call Framebuffer::setupForRendering() and Framebuffer::endRendering() for you. More...

#include <framebuffer.h>

Collaboration diagram for glut::FramebufferContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FramebufferContext (IN Framebuffer *fbuffer, IN int textureId, IN const render_context_t &rc)
 constructor: you must provide the Framebuffer and texture, and the render context will be prepared for you.
 ~FramebufferContext (void) throw ()
 destructor: automatically cleans up

Detailed Description

simple helper class--put this on the stack and it will automatically call Framebuffer::setupForRendering() and Framebuffer::endRendering() for you.

Definition at line 87 of file framebuffer.h.


Constructor & Destructor Documentation

glut::FramebufferContext::FramebufferContext ( IN Framebuffer fbuffer,
IN int  textureId,
IN const render_context_t rc 
) [inline]

constructor: you must provide the Framebuffer and texture, and the render context will be prepared for you.

Definition at line 91 of file framebuffer.h.

glut::FramebufferContext::~FramebufferContext ( void   )  throw () [inline]

destructor: automatically cleans up

Definition at line 101 of file framebuffer.h.


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