MeVisLab Resolution Independence API
SoUniformParameterBase Class Reference

Base class for uniform shader parameters. More...

#include <SoUniformParameterBase.h>

Inheritance diagram for SoUniformParameterBase:
SoGLShaderProgram SoShaderParameterCollector SoGLCompleteShader SoGLInventorShaderProgram

Public Types

enum  SamplerType { SAMPLER_1D , SAMPLER_2D , SAMPLER_3D , SAMPLER_CUBEMAP }
 

Public Member Functions

virtual int addTextureSampler (const SbString &)
 Adds a texture sampler with the given name and returns the assigned texture unit.
 
virtual void set1f (const SbString &, const float)
 
virtual void set2f (const SbString &, const float *)
 
virtual void set3f (const SbString &, const float *)
 
virtual void set4f (const SbString &, const float *)
 
virtual void set2f (const SbString &, const float, const float)
 
virtual void set3f (const SbString &, const float, const float, const float)
 
virtual void set4f (const SbString &, const float, const float, const float, const float)
 
virtual void set1fv (const SbString &, const int, const float *)
 
virtual void set2fv (const SbString &, const int, const float *)
 
virtual void set3fv (const SbString &, const int, const float *)
 
virtual void set4fv (const SbString &, const int, const float *)
 
virtual void set1i (const SbString &, const int32_t)
 
virtual void set2i (const SbString &, const int32_t *)
 
virtual void set2i (const SbString &, const SbVec2s &)
 
virtual void set3i (const SbString &, const int32_t *)
 
virtual void set3i (const SbString &, const SbVec3s &)
 
virtual void set4i (const SbString &, const int32_t *)
 
virtual void setMatrix3f (const SbString &name, const float *values, SbBool transpose=FALSE)
 
virtual void setMatrix4f (const SbString &name, const float *values, SbBool transpose=FALSE)
 
virtual void setMatrix3fv (const SbString &, int, const float *, SbBool=FALSE)
 
virtual void setMatrix4fv (const SbString &, int, const float *, SbBool=FALSE)
 
virtual void setSamplerInfo (const SbString &, SamplerType, uint32_t)
 

Protected Member Functions

 SoUniformParameterBase ()
 Hidden constructor.
 
virtual ~SoUniformParameterBase ()
 Hidden destructor.
 

Detailed Description

Base class for uniform shader parameters.

Base class for uniform shader parameters.

Definition at line 29 of file SoUniformParameterBase.h.

Member Enumeration Documentation

◆ SamplerType

Enumerator
SAMPLER_1D 
SAMPLER_2D 
SAMPLER_3D 
SAMPLER_CUBEMAP 

Definition at line 72 of file SoUniformParameterBase.h.

Constructor & Destructor Documentation

◆ SoUniformParameterBase()

SoUniformParameterBase::SoUniformParameterBase ( )
protected

Hidden constructor.

◆ ~SoUniformParameterBase()

virtual SoUniformParameterBase::~SoUniformParameterBase ( )
protectedvirtual

Hidden destructor.

Member Function Documentation

◆ addTextureSampler()

virtual int SoUniformParameterBase::addTextureSampler ( const SbString & )
inlinevirtual

Adds a texture sampler with the given name and returns the assigned texture unit.

Reimplemented in SoGLShaderProgram.

Definition at line 42 of file SoUniformParameterBase.h.

◆ set1f()

virtual void SoUniformParameterBase::set1f ( const SbString & ,
const float  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 45 of file SoUniformParameterBase.h.

◆ set1fv()

virtual void SoUniformParameterBase::set1fv ( const SbString & ,
const int ,
const float *  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 53 of file SoUniformParameterBase.h.

◆ set1i()

virtual void SoUniformParameterBase::set1i ( const SbString & ,
const int32_t  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 58 of file SoUniformParameterBase.h.

◆ set2f() [1/2]

virtual void SoUniformParameterBase::set2f ( const SbString & ,
const float *  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 46 of file SoUniformParameterBase.h.

◆ set2f() [2/2]

virtual void SoUniformParameterBase::set2f ( const SbString & ,
const float ,
const float  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 49 of file SoUniformParameterBase.h.

◆ set2fv()

virtual void SoUniformParameterBase::set2fv ( const SbString & ,
const int ,
const float *  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 54 of file SoUniformParameterBase.h.

◆ set2i() [1/2]

virtual void SoUniformParameterBase::set2i ( const SbString & ,
const int32_t *  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 59 of file SoUniformParameterBase.h.

◆ set2i() [2/2]

virtual void SoUniformParameterBase::set2i ( const SbString & ,
const SbVec2s &  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 60 of file SoUniformParameterBase.h.

◆ set3f() [1/2]

virtual void SoUniformParameterBase::set3f ( const SbString & ,
const float *  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 47 of file SoUniformParameterBase.h.

◆ set3f() [2/2]

virtual void SoUniformParameterBase::set3f ( const SbString & ,
const float ,
const float ,
const float  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 50 of file SoUniformParameterBase.h.

◆ set3fv()

virtual void SoUniformParameterBase::set3fv ( const SbString & ,
const int ,
const float *  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 55 of file SoUniformParameterBase.h.

◆ set3i() [1/2]

virtual void SoUniformParameterBase::set3i ( const SbString & ,
const int32_t *  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 61 of file SoUniformParameterBase.h.

◆ set3i() [2/2]

virtual void SoUniformParameterBase::set3i ( const SbString & ,
const SbVec3s &  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 62 of file SoUniformParameterBase.h.

◆ set4f() [1/2]

virtual void SoUniformParameterBase::set4f ( const SbString & ,
const float *  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 48 of file SoUniformParameterBase.h.

◆ set4f() [2/2]

virtual void SoUniformParameterBase::set4f ( const SbString & ,
const float ,
const float ,
const float ,
const float  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 51 of file SoUniformParameterBase.h.

◆ set4fv()

virtual void SoUniformParameterBase::set4fv ( const SbString & ,
const int ,
const float *  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 56 of file SoUniformParameterBase.h.

◆ set4i()

virtual void SoUniformParameterBase::set4i ( const SbString & ,
const int32_t *  )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 63 of file SoUniformParameterBase.h.

◆ setMatrix3f()

virtual void SoUniformParameterBase::setMatrix3f ( const SbString & name,
const float * values,
SbBool transpose = FALSE )
inlinevirtual

Definition at line 65 of file SoUniformParameterBase.h.

◆ setMatrix3fv()

virtual void SoUniformParameterBase::setMatrix3fv ( const SbString & ,
int ,
const float * ,
SbBool = FALSE )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 67 of file SoUniformParameterBase.h.

◆ setMatrix4f()

virtual void SoUniformParameterBase::setMatrix4f ( const SbString & name,
const float * values,
SbBool transpose = FALSE )
inlinevirtual

Definition at line 66 of file SoUniformParameterBase.h.

◆ setMatrix4fv()

virtual void SoUniformParameterBase::setMatrix4fv ( const SbString & ,
int ,
const float * ,
SbBool = FALSE )
inlinevirtual

Reimplemented in SoGLShaderProgram, and SoShaderParameterCollector.

Definition at line 68 of file SoUniformParameterBase.h.

◆ setSamplerInfo()

virtual void SoUniformParameterBase::setSamplerInfo ( const SbString & ,
SamplerType ,
uint32_t  )
inlinevirtual

Reimplemented in SoShaderParameterCollector.

Definition at line 81 of file SoUniformParameterBase.h.


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