Public Member Functions | Private Attributes

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 (Framebuffer *fbuffer, int textureId, 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

Private Attributes

Framebufferm_framebuffer

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 ( Framebuffer fbuffer,
int  textureId,
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.


Member Data Documentation

Definition at line 109 of file framebuffer.h.


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