Vis::RenderTarget2D Class Reference

#include <VisRenderTarget2D.h>

List of all members.

Public Member Functions

 RenderTarget2D ()
 ~RenderTarget2D ()
void checkStatus () const
void enable ()
void disable ()
void begin ()
void end ()
void createDepthbuffer (int width, int height)
void createStencilbuffer (int width, int height)
void attachTexture2D (Texture2D &tex, GLenum att)


Detailed Description

Class providing methods for rendering to a texture.

Constructor & Destructor Documentation

Vis::RenderTarget2D::RenderTarget2D (  ) 

ctor.

Vis::RenderTarget2D::~RenderTarget2D (  ) 

dtor.


Member Function Documentation

void Vis::RenderTarget2D::attachTexture2D ( Texture2D tex,
GLenum  att 
)

Attach a texture to the renderbuffer.

Parameters:
tex texture to attach.
att attribute to which attachment the texture is added

void Vis::RenderTarget2D::begin (  ) 

Begin to draw into the render target.

void Vis::RenderTarget2D::checkStatus (  )  const

Check the status of the render target and if necessary print out an error information.

void Vis::RenderTarget2D::createDepthbuffer ( int  width,
int  height 
)

Create a depth buffer for this rendertarget.

Parameters:
width width of the depth buffer.
height height of the depthbuffer.

void Vis::RenderTarget2D::createStencilbuffer ( int  width,
int  height 
)

Create a stencil buffer for this rendertarget.

Parameters:
width width of the stencil buffer.
height height of the stencil buffer.

void Vis::RenderTarget2D::disable (  ) 

Disable the rendertarget and restore the previous viewport size.

void Vis::RenderTarget2D::enable (  ) 

Enable the rendertargt and save the actual viewport size.

void Vis::RenderTarget2D::end (  ) 

End to draw into the render target.


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

Generated on Mon Jan 26 15:00:42 2009 for FlowVis by  doxygen 1.5.7.1