MeVisLab Toolbox Reference
SoInheritedFramebufferSampler.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_INHERITED_FRAMEBUFFER_SAMPLER_H
14 #define SO_INHERITED_FRAMEBUFFER_SAMPLER_H
15 
16 
18 
19 #include "SoShaderSystem.h"
21 #include <Inventor/fields/SoSFUInt32.h>
22 #include <Inventor/SbLinear.h>
23 
25 
27 class INVENTOR_SHADER_API SoInheritedFramebufferSampler : public SoSampler2D
28 {
29  typedef SoSampler2D inherited;
30 
31  SO_NODE_HEADER(SoInheritedFramebufferSampler);
32 
33  public:
34 
36  SoSFUInt32 id;
37 
40 
41  SoEXTENDER public:
42 
44  void GLRender(SoGLRenderAction *) override;
45 
47  void updateParameter(SoUniformParameterBase *, SoState *) override;
48 
49  SoINTERNAL public:
50 
52  static void initClass();
53 
54  protected:
55 
56  unsigned int _curPass;
58  GLuint _texHandle;
59 };
60 
61 #endif // _SO_INHERITED_FRAMEBUFFER_SAMPLER_
Open Inventor node used to access a previous OpenGL framebuffer sampler.
SoInheritedFramebufferSampler()
Constructor.
SoSFUInt32 id
Id that establishes a link to the parent framebuffer node.
void GLRender(SoGLRenderAction *) override
Read state to find out about preceding framebuffer samplers.
SoMultiPassFramebufferSampler * _rfb
static void initClass()
Initialize class with runtime type system.
void updateParameter(SoUniformParameterBase *, SoState *) override
Assigns or updates the parameter's value.
Open Inventor node to accumulate multiple render passes in a sampler.
Abstract Open Inventor base class for 2D sampler nodes.
Definition: SoSampler2D.h:24
Base class for uniform shader parameters.