Stores the location, type, and value for a GLSL shader uniform variable. More...
#include <sceneview/shader_uniform.hpp>
Public Types | |
| enum | Type { kInvalid, kFloat, kInt, kMat4f } |
Public Member Functions | |
| ShaderUniform (const QString &name) | |
| ShaderUniform (const ShaderUniform &other)=delete | |
| void | SetLocation (int location) |
| int | Location () const |
| Type | ParamType () const |
| void | Set (int val) |
| void | Set (const std::vector< int > &val) |
| void | Set (float val) |
| void | Set (const std::vector< float > &val) |
| void | Set (const QMatrix4x4 &val) |
| void | LoadToProgram (QOpenGLShaderProgram *program) |
| ShaderUniform & | operator= (const ShaderUniform &other) |
Stores the location, type, and value for a GLSL shader uniform variable.
1.8.6