Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Wraps an OpenGL Shading Language uniform to be associated to a GLSLProgram (see vl::GLSLProgram documentation). More...
#include <Uniform.hpp>
Public Member Functions | |
Uniform () | |
Uniform (const char *name) | |
ref< Uniform > | clone () const |
const std::string & | name () const |
Returns the name of the uniform variable. | |
std::string & | name () |
Returns the name of the uniform variable. | |
void | setName (const char *name) |
Sets the name of the uniform variable. | |
void | setUniform1i (int count, const int *value) |
void | setUniform2i (int count, const int *value) |
void | setUniform3i (int count, const int *value) |
void | setUniform4i (int count, const int *value) |
void | setUniform1ui (int count, const unsigned int *value) |
void | setUniform2ui (int count, const unsigned int *value) |
void | setUniform3ui (int count, const unsigned int *value) |
void | setUniform4ui (int count, const unsigned int *value) |
void | setUniform1f (int count, const float *value) |
void | setUniform2f (int count, const float *value) |
void | setUniform3f (int count, const float *value) |
void | setUniform4f (int count, const float *value) |
void | setUniform1d (int count, const double *value) |
void | setUniform2d (int count, const double *value) |
void | setUniform3d (int count, const double *value) |
void | setUniform4d (int count, const double *value) |
void | setUniformMatrix2f (int count, const float *value) |
void | setUniformMatrix3f (int count, const float *value) |
void | setUniformMatrix4f (int count, const float *value) |
void | setUniformMatrix2x3f (int count, const float *value) |
void | setUniformMatrix3x2f (int count, const float *value) |
void | setUniformMatrix2x4f (int count, const float *value) |
void | setUniformMatrix4x2f (int count, const float *value) |
void | setUniformMatrix3x4f (int count, const float *value) |
void | setUniformMatrix4x3f (int count, const float *value) |
void | setUniformMatrix2d (int count, const double *value) |
void | setUniformMatrix3d (int count, const double *value) |
void | setUniformMatrix4d (int count, const double *value) |
void | setUniformMatrix2x3d (int count, const double *value) |
void | setUniformMatrix3x2d (int count, const double *value) |
void | setUniformMatrix2x4d (int count, const double *value) |
void | setUniformMatrix4x2d (int count, const double *value) |
void | setUniformMatrix3x4d (int count, const double *value) |
void | setUniformMatrix4x3d (int count, const double *value) |
void | setUniform (int count, const int *value) |
void | setUniform (int count, const ivec2 *value) |
void | setUniform (int count, const ivec3 *value) |
void | setUniform (int count, const ivec4 *value) |
void | setUniform (int count, const unsigned int *value) |
void | setUniform (int count, const uvec2 *value) |
void | setUniform (int count, const uvec3 *value) |
void | setUniform (int count, const uvec4 *value) |
void | setUniform (int count, const float *value) |
void | setUniform (int count, const fvec2 *value) |
void | setUniform (int count, const fvec3 *value) |
void | setUniform (int count, const fvec4 *value) |
void | setUniform (int count, const fmat2 *value) |
void | setUniform (int count, const fmat3 *value) |
void | setUniform (int count, const fmat4 *value) |
void | setUniform (int count, const double *value) |
void | setUniform (int count, const dvec2 *value) |
void | setUniform (int count, const dvec3 *value) |
void | setUniform (int count, const dvec4 *value) |
void | setUniform (int count, const dmat2 *value) |
void | setUniform (int count, const dmat3 *value) |
void | setUniform (int count, const dmat4 *value) |
void | setUniformI (const int &value) |
void | setUniform (const ivec2 &value) |
void | setUniform (const ivec3 &value) |
void | setUniform (const ivec4 &value) |
void | setUniformU (const unsigned int &value) |
void | setUniform (const uvec2 &value) |
void | setUniform (const uvec3 &value) |
void | setUniform (const uvec4 &value) |
void | setUniformF (const float &value) |
void | setUniform (const fvec2 &value) |
void | setUniform (const fvec3 &value) |
void | setUniform (const fvec4 &value) |
void | setUniform (const fmat2 &value) |
void | setUniform (const fmat3 &value) |
void | setUniform (const fmat4 &value) |
void | setUniformD (const double &value) |
void | setUniform (const dvec2 &value) |
void | setUniform (const dvec3 &value) |
void | setUniform (const dvec4 &value) |
void | setUniform (const dmat2 &value) |
void | setUniform (const dmat3 &value) |
void | setUniform (const dmat4 &value) |
void | getUniform (double *value) const |
void | getUniform (float *value) const |
void | getUniform (int *value) const |
void | getUniform (unsigned int *value) const |
void | getUniform (ivec2 *value) const |
void | getUniform (ivec3 *value) const |
void | getUniform (ivec4 *value) const |
void | getUniform (uvec2 *value) const |
void | getUniform (uvec3 *value) const |
void | getUniform (uvec4 *value) const |
void | getUniform (fvec2 *value) const |
void | getUniform (fvec3 *value) const |
void | getUniform (fvec4 *value) const |
void | getUniform (fmat2 *value) const |
void | getUniform (fmat3 *value) const |
void | getUniform (fmat4 *value) const |
void | getUniform (dvec2 *value) const |
void | getUniform (dvec3 *value) const |
void | getUniform (dvec4 *value) const |
void | getUniform (dmat2 *value) const |
void | getUniform (dmat3 *value) const |
void | getUniform (dmat4 *value) const |
EUniformType | type () const |
int | count () const |
void * | rawData () |
const void * | rawData () const |
Protected Member Functions | |
VL_COMPILE_TIME_CHECK (sizeof(int)==sizeof(float)) void initData(int count) | |
void | initDouble (int count) |
int | singleCount () const |
int | doubleCount () const |
const double * | doubleData () const |
const float * | floatData () const |
const int * | intData () const |
const unsigned int * | uintData () const |
Protected Attributes | |
EUniformType | mType |
std::vector< int > | mData |
std::string | mName |
Friends | |
class | GLSLProgram |
Wraps an OpenGL Shading Language uniform to be associated to a GLSLProgram (see vl::GLSLProgram documentation).
Definition at line 59 of file Uniform.hpp.
vl::Uniform::Uniform | ( | ) | [inline] |
Definition at line 67 of file Uniform.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
Referenced by clone().
vl::Uniform::Uniform | ( | const char * | name ) | [inline] |
Definition at line 72 of file Uniform.hpp.
References mName, name(), and VL_DEBUG_SET_OBJECT_NAME.
Definition at line 78 of file Uniform.hpp.
References Uniform().
const std::string& vl::Uniform::name | ( | ) | const [inline] |
Returns the name of the uniform variable.
Definition at line 86 of file Uniform.hpp.
References mName.
Referenced by vl::GLSLProgram::applyUniformSet(), vl::ShaderNode::eraseUniform(), vl::VLXClassWrapper_Uniform::exportUniform(), vl::VLXClassWrapper_Uniform::importUniform(), setName(), vl::UniformSet::setUniform(), vl::ShaderNode::setUniform(), and Uniform().
std::string& vl::Uniform::name | ( | ) | [inline] |
Returns the name of the uniform variable.
Definition at line 89 of file Uniform.hpp.
References mName.
void vl::Uniform::setName | ( | const char * | name ) | [inline] |
Sets the name of the uniform variable.
Definition at line 92 of file Uniform.hpp.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniform1i | ( | int | count, |
const int * | value | ||
) | [inline] |
Definition at line 96 of file Uniform.hpp.
References vl::Has_GLSL, mData, mType, vl::UT_INT, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), setUniform(), setUniformI(), vl::SlicedVolume::updateUniforms(), and vl::RaycastVolume::updateUniforms().
void vl::Uniform::setUniform2i | ( | int | count, |
const int * | value | ||
) | [inline] |
Definition at line 97 of file Uniform.hpp.
References vl::Has_GLSL, mData, mType, vl::UT_INT_VEC2, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniform3i | ( | int | count, |
const int * | value | ||
) | [inline] |
Definition at line 98 of file Uniform.hpp.
References vl::Has_GLSL, mData, mType, vl::UT_INT_VEC3, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniform4i | ( | int | count, |
const int * | value | ||
) | [inline] |
Definition at line 99 of file Uniform.hpp.
References vl::Has_GLSL, mData, mType, vl::UT_INT_VEC4, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniform1ui | ( | int | count, |
const unsigned int * | value | ||
) | [inline] |
Definition at line 101 of file Uniform.hpp.
References vl::Has_GL_Version_3_0, vl::Has_GL_Version_4_0, mData, mType, vl::UT_UNSIGNED_INT, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), setUniform(), and setUniformU().
void vl::Uniform::setUniform2ui | ( | int | count, |
const unsigned int * | value | ||
) | [inline] |
Definition at line 102 of file Uniform.hpp.
References vl::Has_GL_Version_3_0, vl::Has_GL_Version_4_0, mData, mType, vl::UT_UNSIGNED_INT_VEC2, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniform3ui | ( | int | count, |
const unsigned int * | value | ||
) | [inline] |
Definition at line 103 of file Uniform.hpp.
References vl::Has_GL_Version_3_0, vl::Has_GL_Version_4_0, mData, mType, vl::UT_UNSIGNED_INT_VEC3, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniform4ui | ( | int | count, |
const unsigned int * | value | ||
) | [inline] |
Definition at line 104 of file Uniform.hpp.
References vl::Has_GL_Version_3_0, vl::Has_GL_Version_4_0, mData, mType, vl::UT_UNSIGNED_INT_VEC4, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniform1f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 106 of file Uniform.hpp.
References vl::Has_GLSL, mData, mType, vl::UT_FLOAT, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), setUniform(), and setUniformF().
void vl::Uniform::setUniform2f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 107 of file Uniform.hpp.
References vl::Has_GLSL, mData, mType, vl::UT_FLOAT_VEC2, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniform3f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 108 of file Uniform.hpp.
References vl::Has_GLSL, mData, mType, vl::UT_FLOAT_VEC3, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniform4f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 109 of file Uniform.hpp.
References vl::Has_GLSL, mData, mType, vl::UT_FLOAT_VEC4, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniform1d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 111 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), setUniform(), and setUniformD().
void vl::Uniform::setUniform2d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 112 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE_VEC2, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniform3d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 113 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE_VEC3, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniform4d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 114 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE_VEC4, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniformMatrix2f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 118 of file Uniform.hpp.
References vl::Has_GLSL, mData, mType, vl::UT_FLOAT_MAT2, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniformMatrix3f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 119 of file Uniform.hpp.
References vl::Has_GLSL, mData, mType, vl::UT_FLOAT_MAT3, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniformMatrix4f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 120 of file Uniform.hpp.
References vl::Has_GLSL, mData, mType, vl::UT_FLOAT_MAT4, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniformMatrix2x3f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 122 of file Uniform.hpp.
References vl::Has_GLSL_120_Or_More, mData, mType, vl::UT_FLOAT_MAT2x3, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniformMatrix3x2f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 123 of file Uniform.hpp.
References vl::Has_GLSL_120_Or_More, mData, mType, vl::UT_FLOAT_MAT3x2, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniformMatrix2x4f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 124 of file Uniform.hpp.
References vl::Has_GLSL_120_Or_More, mData, mType, vl::UT_FLOAT_MAT2x4, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniformMatrix4x2f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 125 of file Uniform.hpp.
References vl::Has_GLSL_120_Or_More, mData, mType, vl::UT_FLOAT_MAT4x2, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniformMatrix3x4f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 126 of file Uniform.hpp.
References vl::Has_GLSL_120_Or_More, mData, mType, vl::UT_FLOAT_MAT3x4, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniformMatrix4x3f | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 127 of file Uniform.hpp.
References vl::Has_GLSL_120_Or_More, mData, mType, vl::UT_FLOAT_MAT4x3, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniformMatrix2d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 129 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE_MAT2, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniformMatrix3d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 130 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE_MAT3, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniformMatrix4d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 131 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE_MAT4, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform(), and setUniform().
void vl::Uniform::setUniformMatrix2x3d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 133 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE_MAT2x3, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniformMatrix3x2d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 134 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE_MAT3x2, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniformMatrix2x4d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 135 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE_MAT2x4, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniformMatrix4x2d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 136 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE_MAT4x2, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniformMatrix3x4d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 137 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE_MAT3x4, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniformMatrix4x3d | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 138 of file Uniform.hpp.
References vl::Has_GL_Version_4_0, initDouble(), mData, mType, vl::UT_DOUBLE_MAT4x3, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::importUniform().
void vl::Uniform::setUniform | ( | int | count, |
const int * | value | ||
) | [inline] |
Definition at line 142 of file Uniform.hpp.
References setUniform1i().
Referenced by vl::SlicedVolume::updateUniforms(), and vl::RaycastVolume::updateUniforms().
void vl::Uniform::setUniform | ( | int | count, |
const ivec2 * | value | ||
) | [inline] |
Definition at line 143 of file Uniform.hpp.
References vl::Vector2< T_Scalar >::ptr(), and setUniform2i().
void vl::Uniform::setUniform | ( | int | count, |
const ivec3 * | value | ||
) | [inline] |
Definition at line 144 of file Uniform.hpp.
References vl::Vector3< T_Scalar >::ptr(), and setUniform3i().
void vl::Uniform::setUniform | ( | int | count, |
const ivec4 * | value | ||
) | [inline] |
Definition at line 145 of file Uniform.hpp.
References vl::Vector4< T_Scalar >::ptr(), and setUniform4i().
void vl::Uniform::setUniform | ( | int | count, |
const unsigned int * | value | ||
) | [inline] |
Definition at line 147 of file Uniform.hpp.
References setUniform1ui().
void vl::Uniform::setUniform | ( | int | count, |
const uvec2 * | value | ||
) | [inline] |
Definition at line 148 of file Uniform.hpp.
References vl::Vector2< T_Scalar >::ptr(), and setUniform2ui().
void vl::Uniform::setUniform | ( | int | count, |
const uvec3 * | value | ||
) | [inline] |
Definition at line 149 of file Uniform.hpp.
References vl::Vector3< T_Scalar >::ptr(), and setUniform3ui().
void vl::Uniform::setUniform | ( | int | count, |
const uvec4 * | value | ||
) | [inline] |
Definition at line 150 of file Uniform.hpp.
References vl::Vector4< T_Scalar >::ptr(), and setUniform4ui().
void vl::Uniform::setUniform | ( | int | count, |
const float * | value | ||
) | [inline] |
Definition at line 152 of file Uniform.hpp.
References setUniform1f().
void vl::Uniform::setUniform | ( | int | count, |
const fvec2 * | value | ||
) | [inline] |
Definition at line 153 of file Uniform.hpp.
References vl::Vector2< T_Scalar >::ptr(), and setUniform2f().
void vl::Uniform::setUniform | ( | int | count, |
const fvec3 * | value | ||
) | [inline] |
Definition at line 154 of file Uniform.hpp.
References vl::Vector3< T_Scalar >::ptr(), and setUniform3f().
void vl::Uniform::setUniform | ( | int | count, |
const fvec4 * | value | ||
) | [inline] |
Definition at line 155 of file Uniform.hpp.
References vl::Vector4< T_Scalar >::ptr(), and setUniform4f().
void vl::Uniform::setUniform | ( | int | count, |
const fmat2 * | value | ||
) | [inline] |
Definition at line 157 of file Uniform.hpp.
References vl::Matrix2< T_Scalar >::ptr(), and setUniformMatrix2f().
void vl::Uniform::setUniform | ( | int | count, |
const fmat3 * | value | ||
) | [inline] |
Definition at line 158 of file Uniform.hpp.
References vl::Matrix3< T_Scalar >::ptr(), and setUniformMatrix3f().
void vl::Uniform::setUniform | ( | int | count, |
const fmat4 * | value | ||
) | [inline] |
Definition at line 159 of file Uniform.hpp.
References vl::Matrix4< T_Scalar >::ptr(), and setUniformMatrix4f().
void vl::Uniform::setUniform | ( | int | count, |
const double * | value | ||
) | [inline] |
Definition at line 161 of file Uniform.hpp.
References setUniform1d().
void vl::Uniform::setUniform | ( | int | count, |
const dvec2 * | value | ||
) | [inline] |
Definition at line 162 of file Uniform.hpp.
References vl::Vector2< T_Scalar >::ptr(), and setUniform2d().
void vl::Uniform::setUniform | ( | int | count, |
const dvec3 * | value | ||
) | [inline] |
Definition at line 163 of file Uniform.hpp.
References vl::Vector3< T_Scalar >::ptr(), and setUniform3d().
void vl::Uniform::setUniform | ( | int | count, |
const dvec4 * | value | ||
) | [inline] |
Definition at line 164 of file Uniform.hpp.
References vl::Vector4< T_Scalar >::ptr(), and setUniform4d().
void vl::Uniform::setUniform | ( | int | count, |
const dmat2 * | value | ||
) | [inline] |
Definition at line 166 of file Uniform.hpp.
References vl::Matrix2< T_Scalar >::ptr(), and setUniformMatrix2d().
void vl::Uniform::setUniform | ( | int | count, |
const dmat3 * | value | ||
) | [inline] |
Definition at line 167 of file Uniform.hpp.
References vl::Matrix3< T_Scalar >::ptr(), and setUniformMatrix3d().
void vl::Uniform::setUniform | ( | int | count, |
const dmat4 * | value | ||
) | [inline] |
Definition at line 168 of file Uniform.hpp.
References vl::Matrix4< T_Scalar >::ptr(), and setUniformMatrix4d().
void vl::Uniform::setUniformI | ( | const int & | value ) | [inline] |
Definition at line 172 of file Uniform.hpp.
References setUniform1i().
void vl::Uniform::setUniform | ( | const ivec2 & | value ) | [inline] |
Definition at line 173 of file Uniform.hpp.
References vl::Vector2< T_Scalar >::ptr(), and setUniform2i().
void vl::Uniform::setUniform | ( | const ivec3 & | value ) | [inline] |
Definition at line 174 of file Uniform.hpp.
References vl::Vector3< T_Scalar >::ptr(), and setUniform3i().
void vl::Uniform::setUniform | ( | const ivec4 & | value ) | [inline] |
Definition at line 175 of file Uniform.hpp.
References vl::Vector4< T_Scalar >::ptr(), and setUniform4i().
void vl::Uniform::setUniformU | ( | const unsigned int & | value ) | [inline] |
Definition at line 177 of file Uniform.hpp.
References setUniform1ui().
void vl::Uniform::setUniform | ( | const uvec2 & | value ) | [inline] |
Definition at line 178 of file Uniform.hpp.
References vl::Vector2< T_Scalar >::ptr(), and setUniform2ui().
void vl::Uniform::setUniform | ( | const uvec3 & | value ) | [inline] |
Definition at line 179 of file Uniform.hpp.
References vl::Vector3< T_Scalar >::ptr(), and setUniform3ui().
void vl::Uniform::setUniform | ( | const uvec4 & | value ) | [inline] |
Definition at line 180 of file Uniform.hpp.
References vl::Vector4< T_Scalar >::ptr(), and setUniform4ui().
void vl::Uniform::setUniformF | ( | const float & | value ) | [inline] |
Definition at line 182 of file Uniform.hpp.
References setUniform1f().
void vl::Uniform::setUniform | ( | const fvec2 & | value ) | [inline] |
Definition at line 183 of file Uniform.hpp.
References vl::Vector2< T_Scalar >::ptr(), and setUniform2f().
void vl::Uniform::setUniform | ( | const fvec3 & | value ) | [inline] |
Definition at line 184 of file Uniform.hpp.
References vl::Vector3< T_Scalar >::ptr(), and setUniform3f().
void vl::Uniform::setUniform | ( | const fvec4 & | value ) | [inline] |
Definition at line 185 of file Uniform.hpp.
References vl::Vector4< T_Scalar >::ptr(), and setUniform4f().
void vl::Uniform::setUniform | ( | const fmat2 & | value ) | [inline] |
Definition at line 187 of file Uniform.hpp.
References vl::Matrix2< T_Scalar >::ptr(), and setUniformMatrix2f().
void vl::Uniform::setUniform | ( | const fmat3 & | value ) | [inline] |
Definition at line 188 of file Uniform.hpp.
References vl::Matrix3< T_Scalar >::ptr(), and setUniformMatrix3f().
void vl::Uniform::setUniform | ( | const fmat4 & | value ) | [inline] |
Definition at line 189 of file Uniform.hpp.
References vl::Matrix4< T_Scalar >::ptr(), and setUniformMatrix4f().
void vl::Uniform::setUniformD | ( | const double & | value ) | [inline] |
Definition at line 191 of file Uniform.hpp.
References setUniform1d().
void vl::Uniform::setUniform | ( | const dvec2 & | value ) | [inline] |
Definition at line 192 of file Uniform.hpp.
References vl::Vector2< T_Scalar >::ptr(), and setUniform2d().
void vl::Uniform::setUniform | ( | const dvec3 & | value ) | [inline] |
Definition at line 193 of file Uniform.hpp.
References vl::Vector3< T_Scalar >::ptr(), and setUniform3d().
void vl::Uniform::setUniform | ( | const dvec4 & | value ) | [inline] |
Definition at line 194 of file Uniform.hpp.
References vl::Vector4< T_Scalar >::ptr(), and setUniform4d().
void vl::Uniform::setUniform | ( | const dmat2 & | value ) | [inline] |
Definition at line 196 of file Uniform.hpp.
References vl::Matrix2< T_Scalar >::ptr(), and setUniformMatrix2d().
void vl::Uniform::setUniform | ( | const dmat3 & | value ) | [inline] |
Definition at line 197 of file Uniform.hpp.
References vl::Matrix3< T_Scalar >::ptr(), and setUniformMatrix3d().
void vl::Uniform::setUniform | ( | const dmat4 & | value ) | [inline] |
Definition at line 198 of file Uniform.hpp.
References vl::Matrix4< T_Scalar >::ptr(), and setUniformMatrix4d().
void vl::Uniform::getUniform | ( | double * | value ) | const [inline] |
Definition at line 202 of file Uniform.hpp.
References mData, type(), vl::UT_NONE, and VL_CHECK.
Referenced by vl::VLXClassWrapper_Uniform::exportUniform(), and vl::Shader::getUniform().
void vl::Uniform::getUniform | ( | float * | value ) | const [inline] |
Definition at line 203 of file Uniform.hpp.
References mData, type(), vl::UT_NONE, and VL_CHECK.
void vl::Uniform::getUniform | ( | int * | value ) | const [inline] |
Definition at line 204 of file Uniform.hpp.
References mData, type(), vl::UT_NONE, and VL_CHECK.
void vl::Uniform::getUniform | ( | unsigned int * | value ) | const [inline] |
Definition at line 205 of file Uniform.hpp.
References mData, type(), vl::UT_NONE, and VL_CHECK.
void vl::Uniform::getUniform | ( | ivec2 * | value ) | const [inline] |
Definition at line 207 of file Uniform.hpp.
References getUniform(), and vl::Vector2< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | ivec3 * | value ) | const [inline] |
Definition at line 208 of file Uniform.hpp.
References getUniform(), and vl::Vector3< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | ivec4 * | value ) | const [inline] |
Definition at line 209 of file Uniform.hpp.
References getUniform(), and vl::Vector4< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | uvec2 * | value ) | const [inline] |
Definition at line 211 of file Uniform.hpp.
References getUniform(), and vl::Vector2< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | uvec3 * | value ) | const [inline] |
Definition at line 212 of file Uniform.hpp.
References getUniform(), and vl::Vector3< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | uvec4 * | value ) | const [inline] |
Definition at line 213 of file Uniform.hpp.
References getUniform(), and vl::Vector4< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | fvec2 * | value ) | const [inline] |
Definition at line 215 of file Uniform.hpp.
References getUniform(), and vl::Vector2< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | fvec3 * | value ) | const [inline] |
Definition at line 216 of file Uniform.hpp.
References getUniform(), and vl::Vector3< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | fvec4 * | value ) | const [inline] |
Definition at line 217 of file Uniform.hpp.
References getUniform(), and vl::Vector4< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | fmat2 * | value ) | const [inline] |
Definition at line 219 of file Uniform.hpp.
References getUniform(), and vl::Matrix2< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | fmat3 * | value ) | const [inline] |
Definition at line 220 of file Uniform.hpp.
References getUniform(), and vl::Matrix3< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | fmat4 * | value ) | const [inline] |
Definition at line 221 of file Uniform.hpp.
References getUniform(), and vl::Matrix4< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | dvec2 * | value ) | const [inline] |
Definition at line 223 of file Uniform.hpp.
References getUniform(), and vl::Vector2< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | dvec3 * | value ) | const [inline] |
Definition at line 224 of file Uniform.hpp.
References getUniform(), and vl::Vector3< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | dvec4 * | value ) | const [inline] |
Definition at line 225 of file Uniform.hpp.
References getUniform(), and vl::Vector4< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | dmat2 * | value ) | const [inline] |
Definition at line 227 of file Uniform.hpp.
References getUniform(), and vl::Matrix2< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | dmat3 * | value ) | const [inline] |
Definition at line 228 of file Uniform.hpp.
References getUniform(), and vl::Matrix3< T_Scalar >::ptr().
Referenced by getUniform().
void vl::Uniform::getUniform | ( | dmat4 * | value ) | const [inline] |
Definition at line 229 of file Uniform.hpp.
References getUniform(), and vl::Matrix4< T_Scalar >::ptr().
Referenced by getUniform().
EUniformType vl::Uniform::type | ( | ) | const [inline] |
Definition at line 231 of file Uniform.hpp.
References mType.
Referenced by vl::VLXClassWrapper_Uniform::exportUniform(), and getUniform().
int vl::Uniform::count | ( | ) | const [inline] |
Definition at line 233 of file Uniform.hpp.
References doubleCount(), mData, mType, singleCount(), vl::UT_DOUBLE, vl::UT_DOUBLE_MAT2, vl::UT_DOUBLE_MAT2x3, vl::UT_DOUBLE_MAT2x4, vl::UT_DOUBLE_MAT3, vl::UT_DOUBLE_MAT3x2, vl::UT_DOUBLE_MAT3x4, vl::UT_DOUBLE_MAT4, vl::UT_DOUBLE_MAT4x2, vl::UT_DOUBLE_MAT4x3, vl::UT_DOUBLE_VEC2, vl::UT_DOUBLE_VEC3, vl::UT_DOUBLE_VEC4, vl::UT_FLOAT, vl::UT_FLOAT_MAT2, vl::UT_FLOAT_MAT2x3, vl::UT_FLOAT_MAT2x4, vl::UT_FLOAT_MAT3, vl::UT_FLOAT_MAT3x2, vl::UT_FLOAT_MAT3x4, vl::UT_FLOAT_MAT4, vl::UT_FLOAT_MAT4x2, vl::UT_FLOAT_MAT4x3, vl::UT_FLOAT_VEC2, vl::UT_FLOAT_VEC3, vl::UT_FLOAT_VEC4, vl::UT_INT, vl::UT_INT_VEC2, vl::UT_INT_VEC3, vl::UT_INT_VEC4, vl::UT_UNSIGNED_INT, vl::UT_UNSIGNED_INT_VEC2, vl::UT_UNSIGNED_INT_VEC3, vl::UT_UNSIGNED_INT_VEC4, and VL_TRAP.
Referenced by vl::GLSLProgram::applyUniformSet(), and vl::VLXClassWrapper_Uniform::exportUniform().
void* vl::Uniform::rawData | ( | ) | [inline] |
Definition at line 288 of file Uniform.hpp.
Referenced by vl::VLXClassWrapper_Uniform::exportUniform().
const void* vl::Uniform::rawData | ( | ) | const [inline] |
Definition at line 290 of file Uniform.hpp.
vl::Uniform::VL_COMPILE_TIME_CHECK | ( | sizeof(int) | = = sizeof(float) ) |
[inline, protected] |
Definition at line 293 of file Uniform.hpp.
References mData.
void vl::Uniform::initDouble | ( | int | count ) | [inline, protected] |
Definition at line 295 of file Uniform.hpp.
References mData.
Referenced by setUniform1d(), setUniform2d(), setUniform3d(), setUniform4d(), setUniformMatrix2d(), setUniformMatrix2x3d(), setUniformMatrix2x4d(), setUniformMatrix3d(), setUniformMatrix3x2d(), setUniformMatrix3x4d(), setUniformMatrix4d(), setUniformMatrix4x2d(), and setUniformMatrix4x3d().
int vl::Uniform::singleCount | ( | ) | const [inline, protected] |
int vl::Uniform::doubleCount | ( | ) | const [inline, protected] |
const double* vl::Uniform::doubleData | ( | ) | const [inline, protected] |
Definition at line 298 of file Uniform.hpp.
References mData, and VL_CHECK.
Referenced by vl::GLSLProgram::applyUniformSet().
const float* vl::Uniform::floatData | ( | ) | const [inline, protected] |
Definition at line 299 of file Uniform.hpp.
References mData, and VL_CHECK.
Referenced by vl::GLSLProgram::applyUniformSet().
const int* vl::Uniform::intData | ( | ) | const [inline, protected] |
Definition at line 300 of file Uniform.hpp.
References mData, and VL_CHECK.
Referenced by vl::GLSLProgram::applyUniformSet().
const unsigned int* vl::Uniform::uintData | ( | ) | const [inline, protected] |
Definition at line 301 of file Uniform.hpp.
References mData, and VL_CHECK.
Referenced by vl::GLSLProgram::applyUniformSet().
friend class GLSLProgram [friend] |
Definition at line 63 of file Uniform.hpp.
EUniformType vl::Uniform::mType [protected] |
Definition at line 303 of file Uniform.hpp.
Referenced by vl::GLSLProgram::applyUniformSet(), count(), setUniform1d(), setUniform1f(), setUniform1i(), setUniform1ui(), setUniform2d(), setUniform2f(), setUniform2i(), setUniform2ui(), setUniform3d(), setUniform3f(), setUniform3i(), setUniform3ui(), setUniform4d(), setUniform4f(), setUniform4i(), setUniform4ui(), setUniformMatrix2d(), setUniformMatrix2f(), setUniformMatrix2x3d(), setUniformMatrix2x3f(), setUniformMatrix2x4d(), setUniformMatrix2x4f(), setUniformMatrix3d(), setUniformMatrix3f(), setUniformMatrix3x2d(), setUniformMatrix3x2f(), setUniformMatrix3x4d(), setUniformMatrix3x4f(), setUniformMatrix4d(), setUniformMatrix4f(), setUniformMatrix4x2d(), setUniformMatrix4x2f(), setUniformMatrix4x3d(), setUniformMatrix4x3f(), and type().
std::vector<int> vl::Uniform::mData [protected] |
Definition at line 304 of file Uniform.hpp.
Referenced by count(), doubleCount(), doubleData(), floatData(), getUniform(), initDouble(), intData(), rawData(), setUniform1d(), setUniform1f(), setUniform1i(), setUniform1ui(), setUniform2d(), setUniform2f(), setUniform2i(), setUniform2ui(), setUniform3d(), setUniform3f(), setUniform3i(), setUniform3ui(), setUniform4d(), setUniform4f(), setUniform4i(), setUniform4ui(), setUniformMatrix2d(), setUniformMatrix2f(), setUniformMatrix2x3d(), setUniformMatrix2x3f(), setUniformMatrix2x4d(), setUniformMatrix2x4f(), setUniformMatrix3d(), setUniformMatrix3f(), setUniformMatrix3x2d(), setUniformMatrix3x2f(), setUniformMatrix3x4d(), setUniformMatrix3x4f(), setUniformMatrix4d(), setUniformMatrix4f(), setUniformMatrix4x2d(), setUniformMatrix4x2f(), setUniformMatrix4x3d(), setUniformMatrix4x3f(), singleCount(), uintData(), and VL_COMPILE_TIME_CHECK().
std::string vl::Uniform::mName [protected] |
Definition at line 305 of file Uniform.hpp.