# Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics

[Home] [Tutorials] [All Classes] [Grouped Classes]

Public Member Functions | Protected Member Functions | Protected Attributes | Friends

# vl::Uniform Class Reference

Wraps an OpenGL Shading Language uniform to be associated to a GLSLProgram (see vl::GLSLProgram documentation). More...

`#include <Uniform.hpp>`

Inheritance diagram for vl::Uniform:

List of all members.

## Public Member Functions

virtual const char * | className ()
| Returns the name of the class.
| Uniform ()
| Uniform (const std::string &name)
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 std::string &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 ivec2 *value)
void | setUniform (int count, const ivec3 *value)
void | setUniform (int count, const ivec4 *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 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 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)
void | getUniform (float *value)
void | getUniform (int *value)
void | getUniform (unsigned int *value)
void | getUniform (ivec2 *value)
void | getUniform (ivec3 *value)
void | getUniform (ivec4 *value)
void | getUniform (uvec2 *value)
void | getUniform (uvec3 *value)
void | getUniform (uvec4 *value)
void | getUniform (fvec2 *value)
void | getUniform (fvec3 *value)
void | getUniform (fvec4 *value)
void | getUniform (fmat2 *value)
void | getUniform (fmat3 *value)
void | getUniform (fmat4 *value)
void | getUniform (dvec2 *value)
void | getUniform (dvec3 *value)
void | getUniform (dvec4 *value)
void | getUniform (dmat2 *value)
void | getUniform (dmat3 *value)
void | getUniform (dmat4 *value)
EUniformType | type () const
int | count () 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
double * | doubleData ()
float * | floatData ()
int * | intData ()
unsigned int * | uintData ()

## Protected Attributes

EUniformType | mType
std::vector< int > | mData
std::string | mName

## Friends

class | GLSLProgram

## Detailed Description

Wraps an OpenGL Shading Language uniform to be associated to a GLSLProgram (see vl::GLSLProgram documentation).

See also:
  - GLSLProgram
  - Shader
  - Actor
  - UniformSet

Definition at line 59 of file Uniform.hpp.

## Constructor & Destructor Documentation

vl::Uniform::Uniform | ( | ) | `[inline]`

Definition at line 65 of file Uniform.hpp.

References VL_DEBUG_SET_OBJECT_NAME.

vl::Uniform::Uniform | ( | const std::string & | name ) | `[inline]`

Definition at line 70 of file Uniform.hpp.

References mName, name(), and VL_DEBUG_SET_OBJECT_NAME.

## Member Function Documentation

virtual const char* vl::Uniform::className | ( | ) | `[inline, virtual]`

Returns the name of the class.

Reimplemented from vl::Object.

Definition at line 63 of file Uniform.hpp.

const std::string& vl::Uniform::name | ( | ) | const`[inline]`

Returns the name of the uniform variable.

Definition at line 77 of file Uniform.hpp.

References mName.

Referenced by vl::GLSLProgram::applyUniformSet(), vl::ShaderNode::eraseUniform(), 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 79 of file Uniform.hpp.

References mName.

void vl::Uniform::setName | ( | const std::string & | name ) | `[inline]`

Sets the name of the uniform variable.

Definition at line 81 of file Uniform.hpp.

References mName, and name().

void vl::Uniform::setUniform1i | ( | int | count,
|  | const int * | value
| ) |  | `[inline]`

Definition at line 85 of file Uniform.hpp.

References GLEW_Has_Shading_Language_20, mData, mType, vl::UT_Int, and VL_CHECK.

Referenced by setUniformI(), vl::SlicedVolume::updateUniforms(), and vl::RaycastVolume::updateUniforms().

void vl::Uniform::setUniform2i | ( | int | count,
|  | const int * | value
| ) |  | `[inline]`

Definition at line 86 of file Uniform.hpp.

References GLEW_Has_Shading_Language_20, mData, mType, vl::UT_Int2, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniform3i | ( | int | count,
|  | const int * | value
| ) |  | `[inline]`

Definition at line 87 of file Uniform.hpp.

References GLEW_Has_Shading_Language_20, mData, mType, vl::UT_Int3, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniform4i | ( | int | count,
|  | const int * | value
| ) |  | `[inline]`

Definition at line 88 of file Uniform.hpp.

References GLEW_Has_Shading_Language_20, mData, mType, vl::UT_Int4, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniform1ui | ( | int | count,
|  | const unsigned int * | value
| ) |  | `[inline]`

Definition at line 90 of file Uniform.hpp.

References mData, mType, vl::UT_UInt, and VL_CHECK.

Referenced by setUniformU().

void vl::Uniform::setUniform2ui | ( | int | count,
|  | const unsigned int * | value
| ) |  | `[inline]`

Definition at line 91 of file Uniform.hpp.

References mData, mType, vl::UT_UInt2, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniform3ui | ( | int | count,
|  | const unsigned int * | value
| ) |  | `[inline]`

Definition at line 92 of file Uniform.hpp.

References mData, mType, vl::UT_UInt3, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniform4ui | ( | int | count,
|  | const unsigned int * | value
| ) |  | `[inline]`

Definition at line 93 of file Uniform.hpp.

References mData, mType, vl::UT_UInt4, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniform1f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 95 of file Uniform.hpp.

References GLEW_Has_Shading_Language_20, mData, mType, vl::UT_Float, and VL_CHECK.

Referenced by setUniformF().

void vl::Uniform::setUniform2f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 96 of file Uniform.hpp.

References GLEW_Has_Shading_Language_20, mData, mType, vl::UT_Float2, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniform3f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 97 of file Uniform.hpp.

References GLEW_Has_Shading_Language_20, mData, mType, vl::UT_Float3, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniform4f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 98 of file Uniform.hpp.

References GLEW_Has_Shading_Language_20, mData, mType, vl::UT_Float4, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniform1d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 100 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Double, and VL_CHECK.

Referenced by setUniformD().

void vl::Uniform::setUniform2d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 101 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Double2, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniform3d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 102 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Double3, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniform4d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 103 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Double4, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniformMatrix2f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 107 of file Uniform.hpp.

References GLEW_Has_Shading_Language_20, mData, mType, vl::UT_Mat2F, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniformMatrix3f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 108 of file Uniform.hpp.

References GLEW_Has_Shading_Language_20, mData, mType, vl::UT_Mat3F, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniformMatrix4f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 109 of file Uniform.hpp.

References GLEW_Has_Shading_Language_20, mData, mType, vl::UT_Mat4F, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniformMatrix2x3f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 111 of file Uniform.hpp.

References GLEW_Has_Shading_Language_21, mData, mType, vl::UT_Mat2x3F, and VL_CHECK.

void vl::Uniform::setUniformMatrix3x2f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 112 of file Uniform.hpp.

References GLEW_Has_Shading_Language_21, mData, mType, vl::UT_Mat3x2F, and VL_CHECK.

void vl::Uniform::setUniformMatrix2x4f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 113 of file Uniform.hpp.

References GLEW_Has_Shading_Language_21, mData, mType, vl::UT_Mat2x4F, and VL_CHECK.

void vl::Uniform::setUniformMatrix4x2f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 114 of file Uniform.hpp.

References GLEW_Has_Shading_Language_21, mData, mType, vl::UT_Mat4x2F, and VL_CHECK.

void vl::Uniform::setUniformMatrix3x4f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 115 of file Uniform.hpp.

References GLEW_Has_Shading_Language_21, mData, mType, vl::UT_Mat3x4F, and VL_CHECK.

void vl::Uniform::setUniformMatrix4x3f | ( | int | count,
|  | const float * | value
| ) |  | `[inline]`

Definition at line 116 of file Uniform.hpp.

References GLEW_Has_Shading_Language_21, mData, mType, vl::UT_Mat4x3F, and VL_CHECK.

void vl::Uniform::setUniformMatrix2d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 118 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Mat2D, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniformMatrix3d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 119 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Mat3D, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniformMatrix4d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 120 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Mat4D, and VL_CHECK.

Referenced by setUniform().

void vl::Uniform::setUniformMatrix2x3d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 122 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Mat2x3D, and VL_CHECK.

void vl::Uniform::setUniformMatrix3x2d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 123 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Mat3x2D, and VL_CHECK.

void vl::Uniform::setUniformMatrix2x4d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 124 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Mat2x4D, and VL_CHECK.

void vl::Uniform::setUniformMatrix4x2d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 125 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Mat4x2D, and VL_CHECK.

void vl::Uniform::setUniformMatrix3x4d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 126 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Mat3x4D, and VL_CHECK.

void vl::Uniform::setUniformMatrix4x3d | ( | int | count,
|  | const double * | value
| ) |  | `[inline]`

Definition at line 127 of file Uniform.hpp.

References initDouble(), mData, mType, vl::UT_Mat4x3D, and VL_CHECK.

void vl::Uniform::setUniform | ( | int | count,
|  | const ivec2 * | value
| ) |  | `[inline]`

Definition at line 131 of file Uniform.hpp.

References vl::Vector2< T_Scalar >::ptr(), and setUniform2i().

Referenced by vl::SlicedVolume::updateUniforms(), and vl::RaycastVolume::updateUniforms().

void vl::Uniform::setUniform | ( | int | count,
|  | const ivec3 * | value
| ) |  | `[inline]`

Definition at line 132 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 133 of file Uniform.hpp.

References vl::Vector4< T_Scalar >::ptr(), and setUniform4i().

void vl::Uniform::setUniform | ( | int | count,
|  | const uvec2 * | value
| ) |  | `[inline]`

Definition at line 135 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 136 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 137 of file Uniform.hpp.

References vl::Vector4< T_Scalar >::ptr(), and setUniform4ui().

void vl::Uniform::setUniform | ( | int | count,
|  | const fvec2 * | value
| ) |  | `[inline]`

Definition at line 139 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 140 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 141 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 143 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 144 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 145 of file Uniform.hpp.

References vl::Matrix4< T_Scalar >::ptr(), and setUniformMatrix4f().

void vl::Uniform::setUniform | ( | int | count,
|  | const dvec2 * | value
| ) |  | `[inline]`

Definition at line 147 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 148 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 149 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 151 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 152 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 153 of file Uniform.hpp.

References vl::Matrix4< T_Scalar >::ptr(), and setUniformMatrix4d().

void vl::Uniform::setUniformI | ( | const int & | value ) | `[inline]`

Definition at line 157 of file Uniform.hpp.

References setUniform1i().

void vl::Uniform::setUniform | ( | const ivec2 & | value ) | `[inline]`

Definition at line 158 of file Uniform.hpp.

References vl::Vector2< T_Scalar >::ptr(), and setUniform2i().

void vl::Uniform::setUniform | ( | const ivec3 & | value ) | `[inline]`

Definition at line 159 of file Uniform.hpp.

References vl::Vector3< T_Scalar >::ptr(), and setUniform3i().

void vl::Uniform::setUniform | ( | const ivec4 & | value ) | `[inline]`

Definition at line 160 of file Uniform.hpp.

References vl::Vector4< T_Scalar >::ptr(), and setUniform4i().

void vl::Uniform::setUniformU | ( | const unsigned int & | value ) | `[inline]`

Definition at line 162 of file Uniform.hpp.

References setUniform1ui().

void vl::Uniform::setUniform | ( | const uvec2 & | value ) | `[inline]`

Definition at line 163 of file Uniform.hpp.

References vl::Vector2< T_Scalar >::ptr(), and setUniform2ui().

void vl::Uniform::setUniform | ( | const uvec3 & | value ) | `[inline]`

Definition at line 164 of file Uniform.hpp.

References vl::Vector3< T_Scalar >::ptr(), and setUniform3ui().

void vl::Uniform::setUniform | ( | const uvec4 & | value ) | `[inline]`

Definition at line 165 of file Uniform.hpp.

References vl::Vector4< T_Scalar >::ptr(), and setUniform4ui().

void vl::Uniform::setUniformF | ( | const float & | value ) | `[inline]`

Definition at line 167 of file Uniform.hpp.

References setUniform1f().

void vl::Uniform::setUniform | ( | const fvec2 & | value ) | `[inline]`

Definition at line 168 of file Uniform.hpp.

References vl::Vector2< T_Scalar >::ptr(), and setUniform2f().

void vl::Uniform::setUniform | ( | const fvec3 & | value ) | `[inline]`

Definition at line 169 of file Uniform.hpp.

References vl::Vector3< T_Scalar >::ptr(), and setUniform3f().

void vl::Uniform::setUniform | ( | const fvec4 & | value ) | `[inline]`

Definition at line 170 of file Uniform.hpp.

References vl::Vector4< T_Scalar >::ptr(), and setUniform4f().

void vl::Uniform::setUniform | ( | const fmat2 & | value ) | `[inline]`

Definition at line 172 of file Uniform.hpp.

References vl::Matrix2< T_Scalar >::ptr(), and setUniformMatrix2f().

void vl::Uniform::setUniform | ( | const fmat3 & | value ) | `[inline]`

Definition at line 173 of file Uniform.hpp.

References vl::Matrix3< T_Scalar >::ptr(), and setUniformMatrix3f().

void vl::Uniform::setUniform | ( | const fmat4 & | value ) | `[inline]`

Definition at line 174 of file Uniform.hpp.

References vl::Matrix4< T_Scalar >::ptr(), and setUniformMatrix4f().

void vl::Uniform::setUniformD | ( | const double & | value ) | `[inline]`

Definition at line 176 of file Uniform.hpp.

References setUniform1d().

void vl::Uniform::setUniform | ( | const dvec2 & | value ) | `[inline]`

Definition at line 177 of file Uniform.hpp.

References vl::Vector2< T_Scalar >::ptr(), and setUniform2d().

void vl::Uniform::setUniform | ( | const dvec3 & | value ) | `[inline]`

Definition at line 178 of file Uniform.hpp.

References vl::Vector3< T_Scalar >::ptr(), and setUniform3d().

void vl::Uniform::setUniform | ( | const dvec4 & | value ) | `[inline]`

Definition at line 179 of file Uniform.hpp.

References vl::Vector4< T_Scalar >::ptr(), and setUniform4d().

void vl::Uniform::setUniform | ( | const dmat2 & | value ) | `[inline]`

Definition at line 181 of file Uniform.hpp.

References vl::Matrix2< T_Scalar >::ptr(), and setUniformMatrix2d().

void vl::Uniform::setUniform | ( | const dmat3 & | value ) | `[inline]`

Definition at line 182 of file Uniform.hpp.

References vl::Matrix3< T_Scalar >::ptr(), and setUniformMatrix3d().

void vl::Uniform::setUniform | ( | const dmat4 & | value ) | `[inline]`

Definition at line 183 of file Uniform.hpp.

References vl::Matrix4< T_Scalar >::ptr(), and setUniformMatrix4d().

void vl::Uniform::getUniform | ( | double * | value ) | `[inline]`

Definition at line 187 of file Uniform.hpp.

References mData, type(), vl::UT_NONE, and VL_CHECK.

Referenced by vl::Shader::getUniform(), and vl::GLSLProgram::getUniform().

void vl::Uniform::getUniform | ( | float * | value ) | `[inline]`

Definition at line 188 of file Uniform.hpp.

References mData, type(), vl::UT_NONE, and VL_CHECK.

void vl::Uniform::getUniform | ( | int * | value ) | `[inline]`

Definition at line 189 of file Uniform.hpp.

References mData, type(), vl::UT_NONE, and VL_CHECK.

void vl::Uniform::getUniform | ( | unsigned int * | value ) | `[inline]`

Definition at line 190 of file Uniform.hpp.

References mData, type(), vl::UT_NONE, and VL_CHECK.

void vl::Uniform::getUniform | ( | ivec2 * | value ) | `[inline]`

Definition at line 192 of file Uniform.hpp.

References getUniform(), and vl::Vector2< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | ivec3 * | value ) | `[inline]`

Definition at line 193 of file Uniform.hpp.

References getUniform(), and vl::Vector3< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | ivec4 * | value ) | `[inline]`

Definition at line 194 of file Uniform.hpp.

References getUniform(), and vl::Vector4< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | uvec2 * | value ) | `[inline]`

Definition at line 196 of file Uniform.hpp.

References getUniform(), and vl::Vector2< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | uvec3 * | value ) | `[inline]`

Definition at line 197 of file Uniform.hpp.

References getUniform(), and vl::Vector3< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | uvec4 * | value ) | `[inline]`

Definition at line 198 of file Uniform.hpp.

References getUniform(), and vl::Vector4< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | fvec2 * | value ) | `[inline]`

Definition at line 200 of file Uniform.hpp.

References getUniform(), and vl::Vector2< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | fvec3 * | value ) | `[inline]`

Definition at line 201 of file Uniform.hpp.

References getUniform(), and vl::Vector3< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | fvec4 * | value ) | `[inline]`

Definition at line 202 of file Uniform.hpp.

References getUniform(), and vl::Vector4< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | fmat2 * | value ) | `[inline]`

Definition at line 204 of file Uniform.hpp.

References getUniform(), and vl::Matrix2< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | fmat3 * | value ) | `[inline]`

Definition at line 205 of file Uniform.hpp.

References getUniform(), and vl::Matrix3< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | fmat4 * | value ) | `[inline]`

Definition at line 206 of file Uniform.hpp.

References getUniform(), and vl::Matrix4< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | dvec2 * | value ) | `[inline]`

Definition at line 208 of file Uniform.hpp.

References getUniform(), and vl::Vector2< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | dvec3 * | value ) | `[inline]`

Definition at line 209 of file Uniform.hpp.

References getUniform(), and vl::Vector3< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | dvec4 * | value ) | `[inline]`

Definition at line 210 of file Uniform.hpp.

References getUniform(), and vl::Vector4< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | dmat2 * | value ) | `[inline]`

Definition at line 212 of file Uniform.hpp.

References getUniform(), and vl::Matrix2< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | dmat3 * | value ) | `[inline]`

Definition at line 213 of file Uniform.hpp.

References getUniform(), and vl::Matrix3< T_Scalar >::ptr().

Referenced by getUniform().

void vl::Uniform::getUniform | ( | dmat4 * | value ) | `[inline]`

Definition at line 214 of file Uniform.hpp.

References getUniform(), and vl::Matrix4< T_Scalar >::ptr().

Referenced by getUniform().

EUniformType vl::Uniform::type | ( | ) | const`[inline]`

Definition at line 216 of file Uniform.hpp.

References mType.

Referenced by getUniform().

int vl::Uniform::count | ( | ) | const`[inline]`

Definition at line 218 of file Uniform.hpp.

References doubleCount(), mType, singleCount(), vl::UT_Double, vl::UT_Double2, vl::UT_Double3, vl::UT_Double4, vl::UT_Float, vl::UT_Float2, vl::UT_Float3, vl::UT_Float4, vl::UT_Int, vl::UT_Int2, vl::UT_Int3, vl::UT_Int4, vl::UT_Mat2D, vl::UT_Mat2F, vl::UT_Mat2x3D, vl::UT_Mat2x3F, vl::UT_Mat2x4D, vl::UT_Mat2x4F, vl::UT_Mat3D, vl::UT_Mat3F, vl::UT_Mat3x2D, vl::UT_Mat3x2F, vl::UT_Mat3x4D, vl::UT_Mat3x4F, vl::UT_Mat4D, vl::UT_Mat4F, vl::UT_Mat4x2D, vl::UT_Mat4x2F, vl::UT_Mat4x3D, vl::UT_Mat4x3F, vl::UT_UInt, vl::UT_UInt2, vl::UT_UInt3, vl::UT_UInt4, and VL_TRAP.

Referenced by vl::GLSLProgram::applyUniformSet().

vl::Uniform::VL_COMPILE_TIME_CHECK | ( | sizeof(int) | = `= sizeof(float)` ) | `[inline, protected]`

Definition at line 271 of file Uniform.hpp.

References mData.

void vl::Uniform::initDouble | ( | int | count ) | `[inline, protected]`

Definition at line 273 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]`

Definition at line 274 of file Uniform.hpp.

References mData.

Referenced by count().

int vl::Uniform::doubleCount | ( | ) | const`[inline, protected]`

Definition at line 275 of file Uniform.hpp.

References mData, and VL_CHECK.

Referenced by count().

double* vl::Uniform::doubleData | ( | ) | `[inline, protected]`

Definition at line 276 of file Uniform.hpp.

References mData, and VL_CHECK.

Referenced by vl::GLSLProgram::applyUniformSet().

float* vl::Uniform::floatData | ( | ) | `[inline, protected]`

Definition at line 277 of file Uniform.hpp.

References mData, and VL_CHECK.

Referenced by vl::GLSLProgram::applyUniformSet().

int* vl::Uniform::intData | ( | ) | `[inline, protected]`

Definition at line 278 of file Uniform.hpp.

References mData, and VL_CHECK.

Referenced by vl::GLSLProgram::applyUniformSet().

unsigned int* vl::Uniform::uintData | ( | ) | `[inline, protected]`

Definition at line 279 of file Uniform.hpp.

References mData, and VL_CHECK.

Referenced by vl::GLSLProgram::applyUniformSet().

## Friends And Related Function Documentation

friend class GLSLProgram`[friend]`

Definition at line 61 of file Uniform.hpp.

## Member Data Documentation

EUniformType vl::Uniform::mType`[protected]`

Definition at line 281 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 282 of file Uniform.hpp.

Referenced by doubleCount(), doubleData(), floatData(), getUniform(), initDouble(), intData(), 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 283 of file Uniform.hpp.

Referenced by name(), setName(), and Uniform().

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

- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlGraphics/Uniform.hpp

Visualization Library v2011.05.1142 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 26 2011 22:51:47.
Permission is granted to use this page to write and publish articles regarding Visualization Library.