Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | List of all members
BIAS::glfRenderTarget Class Referenceabstract

Interface for render targets. More...

#include <OpenGLFramework/Base/glfRenderTarget.hh>

+ Inheritance diagram for BIAS::glfRenderTarget:

Public Types

enum  BufferType { BUFFER_COLOR, BUFFER_DEPTH, BUFFER_STENCIL }
 

Public Member Functions

virtual void Bind () const =0
 Makes this render target the currently used render target. More...
 
void ClearAccumBuffer (float red=0.0f, float green=0.0f, float blue=0.0f, float alpha=0.0f)
 Clears the accumulation buffer of the render target with the given color. More...
 
void ClearColorBuffer (float red=0.0f, float green=0.0f, float blue=0.0f, float alpha=0.0f)
 Clears the color buffer of the render target with the given color. More...
 
void ClearDepthBuffer (float depth=1.0f)
 Clears the depth buffer of the render target with the given value. More...
 
void ClearStencilBuffer (int s=0)
 Clears the stencil buffer of the render target with the given value. More...
 
void ReadBuffer (BIAS::ImageBase &image, BufferType bufferType, int x, int y, int width, int height)
 Copies the contents of a buffer to an image. More...
 
virtual ~glfRenderTarget ()
 

Detailed Description

Interface for render targets.

Author
jkollmann

Definition at line 38 of file glfRenderTarget.hh.

Member Enumeration Documentation

Enumerator
BUFFER_COLOR 
BUFFER_DEPTH 
BUFFER_STENCIL 

Definition at line 66 of file glfRenderTarget.hh.

Constructor & Destructor Documentation

virtual BIAS::glfRenderTarget::~glfRenderTarget ( )
inlinevirtual

Definition at line 40 of file glfRenderTarget.hh.

Member Function Documentation

virtual void BIAS::glfRenderTarget::Bind ( ) const
pure virtual
void glfRenderTarget::ClearAccumBuffer ( float  red = 0.0f,
float  green = 0.0f,
float  blue = 0.0f,
float  alpha = 0.0f 
)

Clears the accumulation buffer of the render target with the given color.

The color (0,0,0,0) is the default clear color in OpenGL.

Definition at line 50 of file glfRenderTarget.cpp.

void glfRenderTarget::ClearColorBuffer ( float  red = 0.0f,
float  green = 0.0f,
float  blue = 0.0f,
float  alpha = 0.0f 
)
void glfRenderTarget::ClearDepthBuffer ( float  depth = 1.0f)

Clears the depth buffer of the render target with the given value.

The value 1 is the default clear value for depth buffers in OpenGL.

Examples:
ExampleRenderingContext.cpp.

Definition at line 41 of file glfRenderTarget.cpp.

Referenced by BIAS::GLProjectionParametersBase::BeginDraw_(), BIAS::DistortionRendering::BeginRendering(), BIAS::OutputLensDistortion::Draw_(), BIAS::FramebufferSetup::Execute(), BIAS::DistortionRendering::Init(), and BIAS::TriangleMeshSplatRendering::Splat().

void glfRenderTarget::ClearStencilBuffer ( int  s = 0)

Clears the stencil buffer of the render target with the given value.

The value 0 is the default clear value for stencil buffers in OpenGL.

Definition at line 59 of file glfRenderTarget.cpp.

Referenced by BIAS::GLProjectionParametersBase::BeginDraw_(), and BIAS::DistortionRendering::BeginRendering().

void glfRenderTarget::ReadBuffer ( BIAS::ImageBase image,
BufferType  bufferType,
int  x,
int  y,
int  width,
int  height 
)

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