Visualization Library v1.0.3

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

VL     Star     Watch     Fork     Issue

[Download] [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:
vl::Object

List of all members.

Public Member Functions

 Uniform ()
 Uniform (const char *name)
ref< Uniformclone () 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

Detailed Description

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

See also:

Definition at line 59 of file Uniform.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

ref<Uniform> vl::Uniform::clone (  ) const [inline]

Definition at line 78 of file Uniform.hpp.

References Uniform().

const std::string& vl::Uniform::name (  ) const [inline]
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.

References mName, and name().

Referenced by vl::VLXClassWrapper_Uniform::importUniform().

void vl::Uniform::setUniform1i ( int  count,
const int *  value 
) [inline]
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]
void vl::Uniform::setUniform2ui ( int  count,
const unsigned int *  value 
) [inline]
void vl::Uniform::setUniform3ui ( int  count,
const unsigned int *  value 
) [inline]
void vl::Uniform::setUniform4ui ( int  count,
const unsigned int *  value 
) [inline]
void vl::Uniform::setUniform1f ( int  count,
const float *  value 
) [inline]
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]
void vl::Uniform::setUniform2d ( int  count,
const double *  value 
) [inline]
void vl::Uniform::setUniform3d ( int  count,
const double *  value 
) [inline]
void vl::Uniform::setUniform4d ( int  count,
const double *  value 
) [inline]
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]
void vl::Uniform::setUniformMatrix3x2f ( int  count,
const float *  value 
) [inline]
void vl::Uniform::setUniformMatrix2x4f ( int  count,
const float *  value 
) [inline]
void vl::Uniform::setUniformMatrix4x2f ( int  count,
const float *  value 
) [inline]
void vl::Uniform::setUniformMatrix3x4f ( int  count,
const float *  value 
) [inline]
void vl::Uniform::setUniformMatrix4x3f ( int  count,
const float *  value 
) [inline]
void vl::Uniform::setUniformMatrix2d ( int  count,
const double *  value 
) [inline]
void vl::Uniform::setUniformMatrix3d ( int  count,
const double *  value 
) [inline]
void vl::Uniform::setUniformMatrix4d ( int  count,
const double *  value 
) [inline]
void vl::Uniform::setUniformMatrix2x3d ( int  count,
const double *  value 
) [inline]
void vl::Uniform::setUniformMatrix3x2d ( int  count,
const double *  value 
) [inline]
void vl::Uniform::setUniformMatrix2x4d ( int  count,
const double *  value 
) [inline]
void vl::Uniform::setUniformMatrix4x2d ( int  count,
const double *  value 
) [inline]
void vl::Uniform::setUniformMatrix3x4d ( int  count,
const double *  value 
) [inline]
void vl::Uniform::setUniformMatrix4x3d ( int  count,
const double *  value 
) [inline]
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]
void* vl::Uniform::rawData (  ) [inline]

Definition at line 288 of file Uniform.hpp.

References mData, and NULL.

Referenced by vl::VLXClassWrapper_Uniform::exportUniform().

const void* vl::Uniform::rawData (  ) const [inline]

Definition at line 290 of file Uniform.hpp.

References mData, and NULL.

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]
int vl::Uniform::singleCount (  ) const [inline, protected]

Definition at line 296 of file Uniform.hpp.

References mData.

Referenced by count().

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

Definition at line 297 of file Uniform.hpp.

References mData, and VL_CHECK.

Referenced by count().

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().


Friends And Related Function Documentation

friend class GLSLProgram [friend]

Definition at line 63 of file Uniform.hpp.


Member Data Documentation

std::vector<int> vl::Uniform::mData [protected]
std::string vl::Uniform::mName [protected]

Definition at line 305 of file Uniform.hpp.

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


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:12.
Permission is granted to use this page to write and publish articles regarding Visualization Library.