MeVisLab Resolution Independence API
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"
21#include <Inventor/fields/SoSFVec2s.h>
22#include <Inventor/fields/SoSFInt32.h>
23#include <Inventor/fields/SoSFEnum.h>
24
27{
28 typedef SoFramebufferSampler inherited;
29
30 SO_NODE_HEADER(SoFramebufferSampler2D);
31
32public:
38
40 SoSFVec2s size;
41
43 SoSFInt32 multiSampling;
44
47
48protected:
49 SbVec2s _fldValSize;
50 SbVec2s _size;
51
52 SoGLFramebufferObject* _msaaFBO;
53 SoGLRenderbuffer* _msaaDepthBuffer;
54 SoGLRenderbuffer* _msaaColorBuffer;
57
60
61SoEXTENDER public :
62
64 void updatePreparation(SoState* state) override;
65
66 void renderDebug(SoState* state);
67
69 void updateParameter(SoUniformParameterBase*, SoState*) override;
70
71SoINTERNAL public :
72
74 static void initClass();
75};
76
77#endif // _SO_FRAMEBUFFER_SAMPLER_2D_
#define INVENTOR_SHADER_API
Define class export specifier.
@ MULTISAMPLING_TEXTURE
Renders to a MSAA render buffer and resolves by copying to a texture.
@ MULTISAMPLING_ON
No multi sampling.
SoFramebufferSampler2D()
Constructor.
SoGLFramebufferObject * _msaaFBO
void updatePreparation(SoState *state) override
Render children to framebuffer object.
static void initClass()
Initialize class with runtime type system.
SoGLRenderbuffer * _msaaColorBuffer
~SoFramebufferSampler2D() override
Destructor.
void updateParameter(SoUniformParameterBase *, SoState *) override
Update sampler uniform to inform shader about fbo texture.
void renderDebug(SoState *state)
SoGLRenderbuffer * _msaaDepthBuffer
SoSFVec2s size
Texture size. Default is 64 x 64.
SoFramebufferSampler()
Constructor.
Base class for uniform shader parameters.