Sceneview
 All Classes Functions Variables Enumerations Enumerator Groups Pages
Classes | Public Types | Public Member Functions | List of all members
sv::ShaderUniform Class Reference

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)
 
ShaderUniformoperator= (const ShaderUniform &other)
 

Detailed Description

Stores the location, type, and value for a GLSL shader uniform variable.


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