MeVisLabToolboxReference
SoFramebufferSampler2D Class Reference

Open Inventor sampler node that gets it's 2D image from a framebuffer object. More...

#include <SoFramebufferSampler2D.h>

Inheritance diagram for SoFramebufferSampler2D:
SoFramebufferSampler SoSampler SoUniformShaderParameter SoShaderParameter SoMultiPassFramebufferSampler

List of all members.

Public Types

enum  MultiSamplingMode { MULTISAMPLING_OFF, MULTISAMPLING_ON, MULTISAMPLING_TEXTURE }

Public Member Functions

 SoFramebufferSampler2D ()
 Constructor.
virtual void updatePreparation (SoState *state)
 Render children to framebuffer object.
void renderDebug (SoState *state)
virtual void updateParameter (SoUniformParameterBase *, SoState *)
 Update sampler uniform to inform shader about fbo texture.

Static Public Member Functions

static void initClass ()
 Initialize class with runtime type system.

Public Attributes

SoSFVec2s size
 Texture size. Default is 64 x 64.
SoSFEnum multiSamplingMode
SoSFInt32 multiSampling

Protected Member Functions

 ~SoFramebufferSampler2D ()
 Destructor.

Protected Attributes

SbVec2s _fldValSize
SbVec2s _size
SoGLFramebufferObject * _msaaFBO
SoGLRenderbuffer * _msaaDepthBuffer
SoGLRenderbuffer * _msaaColorBuffer
MultiSamplingMode _msaaMode
int _msaaSamples

Detailed Description

Open Inventor sampler node that gets it's 2D image from a framebuffer object.

Definition at line 18 of file SoFramebufferSampler2D.h.


Member Enumeration Documentation

Enumerator:
MULTISAMPLING_OFF 
MULTISAMPLING_ON 

No multi sampling.

MULTISAMPLING_TEXTURE 

Renders to a MSAA render buffer and resolves by copying to a texture.

Renders to a MSAA texture (resolving needs to be done manually in a shader

Definition at line 26 of file SoFramebufferSampler2D.h.


Constructor & Destructor Documentation

SoFramebufferSampler2D::SoFramebufferSampler2D ( )

Constructor.

SoFramebufferSampler2D::~SoFramebufferSampler2D ( ) [protected]

Destructor.


Member Function Documentation

static void SoFramebufferSampler2D::initClass ( ) [static]

Initialize class with runtime type system.

Reimplemented from SoFramebufferSampler.

Reimplemented in SoMultiPassFramebufferSampler.

void SoFramebufferSampler2D::renderDebug ( SoState *  state)
virtual void SoFramebufferSampler2D::updateParameter ( SoUniformParameterBase ,
SoState *   
) [virtual]

Update sampler uniform to inform shader about fbo texture.

Reimplemented from SoSampler.

virtual void SoFramebufferSampler2D::updatePreparation ( SoState *  state) [virtual]

Render children to framebuffer object.

Reimplemented from SoUniformShaderParameter.


Member Data Documentation

Definition at line 43 of file SoFramebufferSampler2D.h.

SoGLRenderbuffer* SoFramebufferSampler2D::_msaaColorBuffer [protected]

Definition at line 48 of file SoFramebufferSampler2D.h.

SoGLRenderbuffer* SoFramebufferSampler2D::_msaaDepthBuffer [protected]

Definition at line 47 of file SoFramebufferSampler2D.h.

SoGLFramebufferObject* SoFramebufferSampler2D::_msaaFBO [protected]

Definition at line 46 of file SoFramebufferSampler2D.h.

Definition at line 50 of file SoFramebufferSampler2D.h.

SbVec2s SoFramebufferSampler2D::_size [protected]

Definition at line 44 of file SoFramebufferSampler2D.h.

Definition at line 36 of file SoFramebufferSampler2D.h.

Texture size. Default is 64 x 64.

Definition at line 33 of file SoFramebufferSampler2D.h.


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