MorphoGraphX  2.0-1-227
Classes | Public Member Functions | List of all members
mgx::GLSLValue Class Reference

#include <Shader.hpp>

Public Member Functions

 GLSLValue ()
 
 GLSLValue (const GLSLValue &copy)
 
template<typename T >
 GLSLValue (const T &val)
 
template<typename T >
 GLSLValue (const std::vector< T > &val)
 
template<typename T >
 GLSLValue (const T *val, int count)
 
 ~GLSLValue ()
 
GLSLValueoperator= (const GLSLValue &copy)
 
void setUniform (GLint location) const
 
void setAttrib (GLuint location) const
 
std::istream & read (std::istream &s)
 
std::ostream & write (std::ostream &s) const
 
QTextStream & read (QTextStream &s)
 
QTextStream & write (QTextStream &s) const
 
void setValue (const GLint *value, int count)
 
void setValue (const ivec1 *value, int count)
 
void setValue (const ivec2 *value, int count)
 
void setValue (const ivec3 *value, int count)
 
void setValue (const ivec4 *value, int count)
 
void setValue (const GLfloat *value, int count)
 
void setValue (const vec1 *value, int count)
 
void setValue (const vec2 *value, int count)
 
void setValue (const vec3 *value, int count)
 
void setValue (const vec4 *value, int count)
 
void setValue (const mat2 *value, int count)
 
void setValue (const mat3 *value, int count)
 
void setValue (const mat4 *value, int count)
 
void setValue (const GLint &value)
 
void setValue (const ivec1 &value)
 
void setValue (const ivec2 &value)
 
void setValue (const ivec3 &value)
 
void setValue (const ivec4 &value)
 
void setValue (const GLfloat &value)
 
void setValue (const vec1 &value)
 
void setValue (const vec2 &value)
 
void setValue (const vec3 &value)
 
void setValue (const vec4 &value)
 
void setValue (const mat2 &value)
 
void setValue (const mat3 &value)
 
void setValue (const mat4 &value)
 
bool valid () const
 

Detailed Description

Definition at line 58 of file Shader.hpp.

Constructor & Destructor Documentation

◆ GLSLValue() [1/5]

mgx::GLSLValue::GLSLValue ( )
inline

Definition at line 141 of file Shader.hpp.

◆ GLSLValue() [2/5]

mgx::GLSLValue::GLSLValue ( const GLSLValue copy)
inline

Definition at line 147 of file Shader.hpp.

◆ GLSLValue() [3/5]

template<typename T >
mgx::GLSLValue::GLSLValue ( const T &  val)
inlineexplicit

Definition at line 156 of file Shader.hpp.

◆ GLSLValue() [4/5]

template<typename T >
mgx::GLSLValue::GLSLValue ( const std::vector< T > &  val)
inlineexplicit

Definition at line 163 of file Shader.hpp.

◆ GLSLValue() [5/5]

template<typename T >
mgx::GLSLValue::GLSLValue ( const T *  val,
int  count 
)
inlineexplicit

Definition at line 170 of file Shader.hpp.

◆ ~GLSLValue()

mgx::GLSLValue::~GLSLValue ( )
inline

Definition at line 176 of file Shader.hpp.

Member Function Documentation

◆ operator=()

GLSLValue& mgx::GLSLValue::operator= ( const GLSLValue copy)
inline

Definition at line 179 of file Shader.hpp.

◆ read() [1/2]

QTextStream& mgx::GLSLValue::read ( QTextStream &  s)

◆ read() [2/2]

std::istream& mgx::GLSLValue::read ( std::istream &  s)

◆ setAttrib()

void mgx::GLSLValue::setAttrib ( GLuint  location) const
inline

Definition at line 191 of file Shader.hpp.

◆ setUniform()

void mgx::GLSLValue::setUniform ( GLint  location) const
inline

Definition at line 188 of file Shader.hpp.

◆ setValue() [1/26]

void mgx::GLSLValue::setValue ( const GLfloat &  value)
inline

Definition at line 228 of file Shader.hpp.

◆ setValue() [2/26]

void mgx::GLSLValue::setValue ( const GLfloat *  value,
int  count 
)

◆ setValue() [3/26]

void mgx::GLSLValue::setValue ( const GLint &  value)
inline

Definition at line 213 of file Shader.hpp.

◆ setValue() [4/26]

void mgx::GLSLValue::setValue ( const GLint *  value,
int  count 
)

◆ setValue() [5/26]

void mgx::GLSLValue::setValue ( const ivec1 value)
inline

Definition at line 216 of file Shader.hpp.

◆ setValue() [6/26]

void mgx::GLSLValue::setValue ( const ivec1 value,
int  count 
)

◆ setValue() [7/26]

void mgx::GLSLValue::setValue ( const ivec2 value)
inline

Definition at line 219 of file Shader.hpp.

◆ setValue() [8/26]

void mgx::GLSLValue::setValue ( const ivec2 value,
int  count 
)

◆ setValue() [9/26]

void mgx::GLSLValue::setValue ( const ivec3 value)
inline

Definition at line 222 of file Shader.hpp.

◆ setValue() [10/26]

void mgx::GLSLValue::setValue ( const ivec3 value,
int  count 
)

◆ setValue() [11/26]

void mgx::GLSLValue::setValue ( const ivec4 value)
inline

Definition at line 225 of file Shader.hpp.

◆ setValue() [12/26]

void mgx::GLSLValue::setValue ( const ivec4 value,
int  count 
)

◆ setValue() [13/26]

void mgx::GLSLValue::setValue ( const mat2 value)
inline

Definition at line 243 of file Shader.hpp.

◆ setValue() [14/26]

void mgx::GLSLValue::setValue ( const mat2 value,
int  count 
)

◆ setValue() [15/26]

void mgx::GLSLValue::setValue ( const mat3 value)
inline

Definition at line 246 of file Shader.hpp.

◆ setValue() [16/26]

void mgx::GLSLValue::setValue ( const mat3 value,
int  count 
)

◆ setValue() [17/26]

void mgx::GLSLValue::setValue ( const mat4 value)
inline

Definition at line 249 of file Shader.hpp.

◆ setValue() [18/26]

void mgx::GLSLValue::setValue ( const mat4 value,
int  count 
)

◆ setValue() [19/26]

void mgx::GLSLValue::setValue ( const vec1 value)
inline

Definition at line 231 of file Shader.hpp.

◆ setValue() [20/26]

void mgx::GLSLValue::setValue ( const vec1 value,
int  count 
)

◆ setValue() [21/26]

void mgx::GLSLValue::setValue ( const vec2 value)
inline

Definition at line 234 of file Shader.hpp.

◆ setValue() [22/26]

void mgx::GLSLValue::setValue ( const vec2 value,
int  count 
)

◆ setValue() [23/26]

void mgx::GLSLValue::setValue ( const vec3 value)
inline

Definition at line 237 of file Shader.hpp.

◆ setValue() [24/26]

void mgx::GLSLValue::setValue ( const vec3 value,
int  count 
)

◆ setValue() [25/26]

void mgx::GLSLValue::setValue ( const vec4 value)
inline

Definition at line 240 of file Shader.hpp.

◆ setValue() [26/26]

void mgx::GLSLValue::setValue ( const vec4 value,
int  count 
)

◆ valid()

bool mgx::GLSLValue::valid ( ) const
inline

Definition at line 253 of file Shader.hpp.

◆ write() [1/2]

QTextStream& mgx::GLSLValue::write ( QTextStream &  s) const

◆ write() [2/2]

std::ostream& mgx::GLSLValue::write ( std::ostream &  s) const

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