MeVisLab Resolution Independence API
SoShaderParameterCollector Class Reference

A helper class that collects uniforms instead of setting them to a shader. More...

#include <SoUniformParameterBase.h>

Inheritance diagram for SoShaderParameterCollector:
SoUniformParameterBase

Public Member Functions

void set1f (const SbString &name, const float value) override
 
void set2f (const SbString &name, const float *value) override
 
void set3f (const SbString &name, const float *value) override
 
void set4f (const SbString &name, const float *value) override
 
void set2f (const SbString &name, const float value0, const float value1) override
 
void set3f (const SbString &name, const float value0, const float value1, const float value2) override
 
void set4f (const SbString &name, const float value0, const float value1, const float value2, const float value3) override
 
void set1fv (const SbString &name, const int num, const float *value) override
 
void set2fv (const SbString &name, const int num, const float *value) override
 
void set3fv (const SbString &name, const int num, const float *value) override
 
void set4fv (const SbString &name, const int num, const float *value) override
 
void set1i (const SbString &name, const int32_t value) override
 
void set2i (const SbString &name, const int32_t *value) override
 
void set2i (const SbString &name, const SbVec2s &value) override
 
void set3i (const SbString &name, const int32_t *value) override
 
void set3i (const SbString &name, const SbVec3s &value) override
 
void set4i (const SbString &name, const int32_t *value) override
 
void setMatrix3fv (const SbString &name, int num, const float *value, SbBool transpose=FALSE) override
 
void setMatrix4fv (const SbString &name, int num, const float *value, SbBool transpose=FALSE) override
 
void setSamplerInfo (const SbString &name, SamplerType type, uint32_t texId) override
 
const std::vector< ml::OpenGL::TypeInfo > & getUniforms () const
 
- Public Member Functions inherited from SoUniformParameterBase
virtual int addTextureSampler (const SbString &)
 Adds a texture sampler with the given name and returns the assigned texture unit.
 
virtual void setMatrix3f (const SbString &name, const float *values, SbBool transpose=FALSE)
 
virtual void setMatrix4f (const SbString &name, const float *values, SbBool transpose=FALSE)
 

Additional Inherited Members

- Public Types inherited from SoUniformParameterBase
enum  SamplerType { SAMPLER_1D , SAMPLER_2D , SAMPLER_3D , SAMPLER_CUBEMAP }
 
- Protected Member Functions inherited from SoUniformParameterBase
 SoUniformParameterBase ()
 Hidden constructor.
 
virtual ~SoUniformParameterBase ()
 Hidden destructor.
 

Detailed Description

A helper class that collects uniforms instead of setting them to a shader.

Definition at line 85 of file SoUniformParameterBase.h.

Member Function Documentation

◆ getUniforms()

const std::vector< ml::OpenGL::TypeInfo > & SoShaderParameterCollector::getUniforms ( ) const
inline

Definition at line 113 of file SoUniformParameterBase.h.

◆ set1f()

void SoShaderParameterCollector::set1f ( const SbString & name,
const float value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set1fv()

void SoShaderParameterCollector::set1fv ( const SbString & name,
const int num,
const float * value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set1i()

void SoShaderParameterCollector::set1i ( const SbString & name,
const int32_t value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set2f() [1/2]

void SoShaderParameterCollector::set2f ( const SbString & name,
const float * value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set2f() [2/2]

void SoShaderParameterCollector::set2f ( const SbString & name,
const float value0,
const float value1 )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set2fv()

void SoShaderParameterCollector::set2fv ( const SbString & name,
const int num,
const float * value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set2i() [1/2]

void SoShaderParameterCollector::set2i ( const SbString & name,
const int32_t * value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set2i() [2/2]

void SoShaderParameterCollector::set2i ( const SbString & name,
const SbVec2s & value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set3f() [1/2]

void SoShaderParameterCollector::set3f ( const SbString & name,
const float * value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set3f() [2/2]

void SoShaderParameterCollector::set3f ( const SbString & name,
const float value0,
const float value1,
const float value2 )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set3fv()

void SoShaderParameterCollector::set3fv ( const SbString & name,
const int num,
const float * value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set3i() [1/2]

void SoShaderParameterCollector::set3i ( const SbString & name,
const int32_t * value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set3i() [2/2]

void SoShaderParameterCollector::set3i ( const SbString & name,
const SbVec3s & value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set4f() [1/2]

void SoShaderParameterCollector::set4f ( const SbString & name,
const float * value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set4f() [2/2]

void SoShaderParameterCollector::set4f ( const SbString & name,
const float value0,
const float value1,
const float value2,
const float value3 )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set4fv()

void SoShaderParameterCollector::set4fv ( const SbString & name,
const int num,
const float * value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ set4i()

void SoShaderParameterCollector::set4i ( const SbString & name,
const int32_t * value )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ setMatrix3fv()

void SoShaderParameterCollector::setMatrix3fv ( const SbString & name,
int num,
const float * value,
SbBool transpose = FALSE )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ setMatrix4fv()

void SoShaderParameterCollector::setMatrix4fv ( const SbString & name,
int num,
const float * value,
SbBool transpose = FALSE )
overridevirtual

Reimplemented from SoUniformParameterBase.

◆ setSamplerInfo()

void SoShaderParameterCollector::setSamplerInfo ( const SbString & name,
SamplerType type,
uint32_t texId )
overridevirtual

Reimplemented from SoUniformParameterBase.


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