MeVisLab Toolbox Reference
SoFragmentShader Class Reference

Open Inventor fragment shader node. More...

#include <SoFragmentShader.h>

Inheritance diagram for SoFragmentShader:
SoShaderObject

Public Member Functions

 SoFragmentShader ()
 Constructor. More...
 
SoShader::ShaderType shaderType () const override
 Returns SoShader::FRAGMENT_SHADER since this is a fragment shader. More...
 
- Public Member Functions inherited from SoShaderObject
void GLRender (SoGLRenderAction *action) override
 Add this node to element in state. More...
 
SoGLShaderObjectgetGLShaderObject ()
 Returns shader object. More...
 
SourceType getSourceType () const
 Returns shader object's source type. More...
 
const SbString & getSourceProgram () const
 Returns shader object's source program. More...
 
void scheduleRebuild ()
 Schedule rebuild of underlying OpenGL shader (e.g. due to GL context switch) More...
 
SbBool containsMainFunction () const
 
SbBool isSnippet () const
 
SbString getSnippetFunctionName () const
 
SnippetInsertionLocation getSnippetInsertionLocation () const
 
const SbList< SbString > & getSnippetUniformList () const
 
SbBool hasSourceModifications () const
 

Static Public Member Functions

static SbBool isSupported (SourceType sourceType)
 Returns TRUE if the GL implementation supports fragment shaders. More...
 
static void initClass ()
 Initialize class with runtime type system. More...
 
- Static Public Member Functions inherited from SoShaderObject
static void initClass ()
 Initialize class with runtime type system. More...
 

Additional Inherited Members

- Public Types inherited from SoShaderObject
enum  SourceType { GLSL_PROGRAM , FILENAME }
 Shader object's source type. More...
 
enum  SnippetInsertionLocation { AT_BEGIN , AT_END }
 
- Public Attributes inherited from SoShaderObject
SoSFBool isActive
 Enable / disable shader object. More...
 
SoSFEnum sourceType
 Specify shader object's source type. More...
 
SoSFString sourceProgram
 Contains the shader object's source or the filename of the source file. More...
 
SoSFBool emulateLegacyOpenGL
 If enabled, legacy OpenGL state is emulated for shaders >= version 140. More...
 
- Protected Member Functions inherited from SoShaderObject
void checkType ()
 
void readSource ()
 
 SoShaderObject ()
 Constructor. More...
 
 ~SoShaderObject () override
 Destructor. More...
 
- Protected Attributes inherited from SoShaderObject
SoGLShaderObject_glShaderObject
 
SourceType _sourceType
 
SbString _sourceProgram
 

Detailed Description

Open Inventor fragment shader node.

Open Inventor fragment shader node.

Definition at line 23 of file SoFragmentShader.h.

Constructor & Destructor Documentation

◆ SoFragmentShader()

SoFragmentShader::SoFragmentShader ( )

Constructor.

Member Function Documentation

◆ initClass()

static void SoFragmentShader::initClass ( )
static

Initialize class with runtime type system.

◆ isSupported()

static SbBool SoFragmentShader::isSupported ( SourceType  sourceType)
static

Returns TRUE if the GL implementation supports fragment shaders.

◆ shaderType()

SoShader::ShaderType SoFragmentShader::shaderType ( ) const
overridevirtual

Returns SoShader::FRAGMENT_SHADER since this is a fragment shader.

Implements SoShaderObject.


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