MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoFramebufferSampler2D.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2007, MeVis Medical Solutions AG
4
**
5
** The user may use this file in accordance with the license agreement provided with
6
** the Software or, alternatively, in accordance with the terms contained in a
7
** written agreement between the user and MeVis Medical Solutions AG.
8
**
9
** For further information use the contact form at https://www.mevislab.de/contact
10
**
11
**************************************************************************************/
12
13
#ifndef SO_FRAMEBUFFER_SAMPLER2_D_H
14
#define SO_FRAMEBUFFER_SAMPLER2_D_H
15
16
18
19
#include "
SoShaderSystem.h
"
20
#include "
Inventor/nodes/SoFramebufferSampler.h
"
21
#include <Inventor/fields/SoSFVec2s.h>
22
#include <Inventor/fields/SoSFInt32.h>
23
#include <Inventor/fields/SoSFEnum.h>
24
26
class
INVENTOR_SHADER_API
SoFramebufferSampler2D
:
public
SoFramebufferSampler
27
{
28
typedef
SoFramebufferSampler
inherited;
29
30
SO_NODE_HEADER(
SoFramebufferSampler2D
);
31
32
public
:
33
enum
MultiSamplingMode
{
34
MULTISAMPLING_OFF
,
35
MULTISAMPLING_ON
,
36
MULTISAMPLING_TEXTURE
37
};
38
40
SoSFVec2s
size
;
41
42
SoSFEnum
multiSamplingMode
;
43
SoSFInt32
multiSampling
;
44
46
SoFramebufferSampler2D
();
47
48
protected
:
49
SbVec2s
_fldValSize
;
50
SbVec2s
_size
;
51
52
SoGLFramebufferObject*
_msaaFBO
;
53
SoGLRenderbuffer*
_msaaDepthBuffer
;
54
SoGLRenderbuffer*
_msaaColorBuffer
;
55
MultiSamplingMode
_msaaMode
;
56
int
_msaaSamples
;
57
59
~SoFramebufferSampler2D
()
override
;
60
61
SoEXTENDER public :
62
64
void
updatePreparation
(SoState* state)
override
;
65
66
void
renderDebug
(SoState* state);
67
69
void
updateParameter
(
SoUniformParameterBase
*, SoState*)
override
;
70
71
SoINTERNAL public :
72
74
static
void
initClass
();
75
};
76
77
#endif
// _SO_FRAMEBUFFER_SAMPLER_2D_
SoFramebufferSampler.h
SoShaderSystem.h
INVENTOR_SHADER_API
#define INVENTOR_SHADER_API
Define class export specifier.
Definition
SoShaderSystem.h:20
SoFramebufferSampler2D::MultiSamplingMode
MultiSamplingMode
Definition
SoFramebufferSampler2D.h:33
SoFramebufferSampler2D::MULTISAMPLING_OFF
@ MULTISAMPLING_OFF
Definition
SoFramebufferSampler2D.h:34
SoFramebufferSampler2D::MULTISAMPLING_TEXTURE
@ MULTISAMPLING_TEXTURE
Renders to a MSAA render buffer and resolves by copying to a texture.
Definition
SoFramebufferSampler2D.h:36
SoFramebufferSampler2D::MULTISAMPLING_ON
@ MULTISAMPLING_ON
No multi sampling.
Definition
SoFramebufferSampler2D.h:35
SoFramebufferSampler2D::_msaaSamples
int _msaaSamples
Definition
SoFramebufferSampler2D.h:56
SoFramebufferSampler2D::SoFramebufferSampler2D
SoFramebufferSampler2D()
Constructor.
SoFramebufferSampler2D::_msaaFBO
SoGLFramebufferObject * _msaaFBO
Definition
SoFramebufferSampler2D.h:52
SoFramebufferSampler2D::updatePreparation
void updatePreparation(SoState *state) override
Render children to framebuffer object.
SoFramebufferSampler2D::initClass
static void initClass()
Initialize class with runtime type system.
SoFramebufferSampler2D::_msaaColorBuffer
SoGLRenderbuffer * _msaaColorBuffer
Definition
SoFramebufferSampler2D.h:54
SoFramebufferSampler2D::~SoFramebufferSampler2D
~SoFramebufferSampler2D() override
Destructor.
SoFramebufferSampler2D::multiSampling
SoSFInt32 multiSampling
Definition
SoFramebufferSampler2D.h:43
SoFramebufferSampler2D::updateParameter
void updateParameter(SoUniformParameterBase *, SoState *) override
Update sampler uniform to inform shader about fbo texture.
SoFramebufferSampler2D::_msaaMode
MultiSamplingMode _msaaMode
Definition
SoFramebufferSampler2D.h:55
SoFramebufferSampler2D::renderDebug
void renderDebug(SoState *state)
SoFramebufferSampler2D::_msaaDepthBuffer
SoGLRenderbuffer * _msaaDepthBuffer
Definition
SoFramebufferSampler2D.h:53
SoFramebufferSampler2D::_fldValSize
SbVec2s _fldValSize
Definition
SoFramebufferSampler2D.h:49
SoFramebufferSampler2D::multiSamplingMode
SoSFEnum multiSamplingMode
Definition
SoFramebufferSampler2D.h:42
SoFramebufferSampler2D::_size
SbVec2s _size
Definition
SoFramebufferSampler2D.h:50
SoFramebufferSampler2D::size
SoSFVec2s size
Texture size. Default is 64 x 64.
Definition
SoFramebufferSampler2D.h:40
SoFramebufferSampler::SoFramebufferSampler
SoFramebufferSampler()
Constructor.
SoUniformParameterBase
Base class for uniform shader parameters.
Definition
SoUniformParameterBase.h:30
MeVisLab
Standard
Sources
Inventor
SoShader
Inventor
nodes
SoFramebufferSampler2D.h
Generated by
1.18.0