13#ifndef SO_UNIFORM_PARAMETER_BASE_H
14#define SO_UNIFORM_PARAMETER_BASE_H
19#include "SoShaderSystem.h"
20#include <Inventor/SbString.h>
24# pragma warning( push )
25# pragma warning( disable : 4100 )
50 virtual void set3f(
const SbString & ,
const float ,
const float ,
const float ) {}
51 virtual void set4f(
const SbString & ,
const float ,
const float ,
const float ,
const float ) {}
96 void set1fv(
const SbString &name,
const int num,
const float *value)
override;
97 void set2fv(
const SbString &name,
const int num,
const float *value)
override;
98 void set3fv(
const SbString &name,
const int num,
const float *value)
override;
99 void set4fv(
const SbString &name,
const int num,
const float *value)
override;
113 const std::vector<ml::OpenGL::TypeInfo>&
getUniforms()
const {
return _uniforms; }
116 std::vector<ml::OpenGL::TypeInfo> _uniforms;
121# pragma warning( pop )
A helper class that collects uniforms instead of setting them to a shader.
void set4fv(const SbString &name, const int num, const float *value) override
void set3fv(const SbString &name, const int num, const float *value) override
void set3f(const SbString &name, const float value0, const float value1, const float value2) override
const std::vector< ml::OpenGL::TypeInfo > & getUniforms() const
void set2f(const SbString &name, const float value0, const float value1) override
void set3i(const SbString &name, const SbVec3s &value) override
void set2i(const SbString &name, const SbVec2s &value) override
void set1f(const SbString &name, const float value) override
void set2fv(const SbString &name, const int num, const float *value) override
void setSamplerInfo(const SbString &name, SamplerType type, uint32_t texId) override
void set4f(const SbString &name, const float *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 set1i(const SbString &name, const int32_t value) override
void set3f(const SbString &name, const float *value) override
void set4f(const SbString &name, const float value0, const float value1, const float value2, const float value3) override
void set3i(const SbString &name, const int32_t *value) override
void set1fv(const SbString &name, const int num, const float *value) override
void set2i(const SbString &name, const int32_t *value) override
void set4i(const SbString &name, const int32_t *value) override
void set2f(const SbString &name, const float *value) override
Target mlrange_cast(Source arg)
Generic version of checked ML casts.