Visualization Library 2.1.0

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 | List of all members
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:

Public Member Functions

 Uniform ()
 
 Uniform (const char *name)
 
ref< Uniformclone () const
 
const std::string & name () const
 Returns the name of the uniform variable. More...
 
std::string & name ()
 Returns the name of the uniform variable. More...
 
void setName (const char *name)
 Sets the name of the uniform variable. More...
 
void setName (const std::string &name)
 Sets the name of the uniform variable. More...
 
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 setUniform (int value)
 
void setUniformI (const int &value)
 
void setUniform (const ivec2 &value)
 
void setUniform (const ivec3 &value)
 
void setUniform (const ivec4 &value)
 
void setUniform (unsigned int value)
 
void setUniformU (const unsigned int &value)
 
void setUniform (const uvec2 &value)
 
void setUniform (const uvec3 &value)
 
void setUniform (const uvec4 &value)
 
void setUniform (float 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 setUniform (double 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)
 
float getUniformF () const
 
double getUniformD () const
 
int getUniformI () const
 
unsigned int getUniformU () const
 
ivec2 getUniform2I () const
 
ivec3 getUniform3I () const
 
ivec4 getUniform4I () const
 
uvec2 getUniform2U () const
 
uvec3 getUniform3U () const
 
uvec4 getUniform4U () const
 
fvec2 getUniform2F () const
 
fvec3 getUniform3F () const
 
fvec4 getUniform4F () const
 
dvec2 getUniform2D () const
 
dvec3 getUniform3D () const
 
dvec4 getUniform4D () const
 
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
 
- Public Member Functions inherited from vl::Object
 Object ()
 Constructor. More...
 
 Object (const Object &other)
 Copy constructor: copies the name, ref count mutex and user data. More...
 
Objectoperator= (const Object &other)
 Copy operator: copies the object's name, ref count mutex and user data. More...
 
const std::string & objectName () const
 The name of the object, by default set to the object's class name. More...
 
void setObjectName (const char *name)
 The name of the object, by default set to the object's class name in debug builds. More...
 
void setObjectName (const std::string &name)
 The name of the object, by default set to the object's class name in debug builds. More...
 
void setRefCountMutex (IMutex *mutex)
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
IMutexrefCountMutex ()
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
const IMutexrefCountMutex () const
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
int referenceCount () const
 Returns the number of references of an object. More...
 
void incReference () const
 Increments the reference count of an object. More...
 
void decReference ()
 Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More...
 
void setAutomaticDelete (bool autodel_on)
 If set to true the Object is deleted when its reference count reaches 0. More...
 
bool automaticDelete () const
 If set to true the Object is deleted when its reference count reaches 0. More...
 
template<class T >
T * as ()
 Casts an Object to the specified class. More...
 
template<class T >
const T * as () const
 Casts an Object to the specified class. More...
 

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 Member Functions inherited from vl::Object
virtual ~Object ()
 

Protected Attributes

EUniformType mType
 
std::vector< int > mData
 
std::string mName
 
- Protected Attributes inherited from vl::Object
std::string mObjectName
 
IMutexmRefCountMutex
 
int mReferenceCount
 
bool mAutomaticDelete
 

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

◆ Uniform() [1/2]

vl::Uniform::Uniform ( )
inline

Definition at line 67 of file Uniform.hpp.

Referenced by clone().

◆ Uniform() [2/2]

vl::Uniform::Uniform ( const char *  name)
inline

Definition at line 72 of file Uniform.hpp.

References mName, and name().

Member Function Documentation

◆ clone()

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

Definition at line 78 of file Uniform.hpp.

References Uniform().

◆ count()

int vl::Uniform::count ( ) const
inline

◆ doubleCount()

int vl::Uniform::doubleCount ( ) const
inlineprotected

Definition at line 325 of file Uniform.hpp.

References mData, and VL_CHECK.

Referenced by count().

◆ doubleData()

const double* vl::Uniform::doubleData ( ) const
inlineprotected

Definition at line 326 of file Uniform.hpp.

References mData, and VL_CHECK.

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

◆ floatData()

const float* vl::Uniform::floatData ( ) const
inlineprotected

Definition at line 327 of file Uniform.hpp.

References mData, and VL_CHECK.

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

◆ getUniform() [1/22]

void vl::Uniform::getUniform ( double *  value) const
inline

◆ getUniform() [2/22]

void vl::Uniform::getUniform ( float *  value) const
inline

Definition at line 231 of file Uniform.hpp.

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

◆ getUniform() [3/22]

void vl::Uniform::getUniform ( int *  value) const
inline

Definition at line 232 of file Uniform.hpp.

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

◆ getUniform() [4/22]

void vl::Uniform::getUniform ( unsigned int *  value) const
inline

Definition at line 233 of file Uniform.hpp.

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

◆ getUniform() [5/22]

void vl::Uniform::getUniform ( ivec2 value) const
inline

Definition at line 235 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [6/22]

void vl::Uniform::getUniform ( ivec3 value) const
inline

Definition at line 236 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [7/22]

void vl::Uniform::getUniform ( ivec4 value) const
inline

Definition at line 237 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [8/22]

void vl::Uniform::getUniform ( uvec2 value) const
inline

Definition at line 239 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [9/22]

void vl::Uniform::getUniform ( uvec3 value) const
inline

Definition at line 240 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [10/22]

void vl::Uniform::getUniform ( uvec4 value) const
inline

Definition at line 241 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [11/22]

void vl::Uniform::getUniform ( fvec2 value) const
inline

Definition at line 243 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [12/22]

void vl::Uniform::getUniform ( fvec3 value) const
inline

Definition at line 244 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [13/22]

void vl::Uniform::getUniform ( fvec4 value) const
inline

Definition at line 245 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [14/22]

void vl::Uniform::getUniform ( fmat2 value) const
inline

Definition at line 247 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [15/22]

void vl::Uniform::getUniform ( fmat3 value) const
inline

Definition at line 248 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [16/22]

void vl::Uniform::getUniform ( fmat4 value) const
inline

Definition at line 249 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [17/22]

void vl::Uniform::getUniform ( dvec2 value) const
inline

Definition at line 251 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [18/22]

void vl::Uniform::getUniform ( dvec3 value) const
inline

Definition at line 252 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [19/22]

void vl::Uniform::getUniform ( dvec4 value) const
inline

Definition at line 253 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [20/22]

void vl::Uniform::getUniform ( dmat2 value) const
inline

Definition at line 255 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [21/22]

void vl::Uniform::getUniform ( dmat3 value) const
inline

Definition at line 256 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform() [22/22]

void vl::Uniform::getUniform ( dmat4 value) const
inline

Definition at line 257 of file Uniform.hpp.

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

Referenced by getUniform().

◆ getUniform2D()

dvec2 vl::Uniform::getUniform2D ( ) const
inline

Definition at line 226 of file Uniform.hpp.

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

◆ getUniform2F()

fvec2 vl::Uniform::getUniform2F ( ) const
inline

Definition at line 222 of file Uniform.hpp.

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

◆ getUniform2I()

ivec2 vl::Uniform::getUniform2I ( ) const
inline

Definition at line 214 of file Uniform.hpp.

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

◆ getUniform2U()

uvec2 vl::Uniform::getUniform2U ( ) const
inline

Definition at line 218 of file Uniform.hpp.

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

◆ getUniform3D()

dvec3 vl::Uniform::getUniform3D ( ) const
inline

Definition at line 227 of file Uniform.hpp.

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

◆ getUniform3F()

fvec3 vl::Uniform::getUniform3F ( ) const
inline

Definition at line 223 of file Uniform.hpp.

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

◆ getUniform3I()

ivec3 vl::Uniform::getUniform3I ( ) const
inline

Definition at line 215 of file Uniform.hpp.

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

◆ getUniform3U()

uvec3 vl::Uniform::getUniform3U ( ) const
inline

Definition at line 219 of file Uniform.hpp.

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

◆ getUniform4D()

dvec4 vl::Uniform::getUniform4D ( ) const
inline

Definition at line 228 of file Uniform.hpp.

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

◆ getUniform4F()

fvec4 vl::Uniform::getUniform4F ( ) const
inline

Definition at line 224 of file Uniform.hpp.

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

◆ getUniform4I()

ivec4 vl::Uniform::getUniform4I ( ) const
inline

Definition at line 216 of file Uniform.hpp.

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

◆ getUniform4U()

uvec4 vl::Uniform::getUniform4U ( ) const
inline

Definition at line 220 of file Uniform.hpp.

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

◆ getUniformD()

double vl::Uniform::getUniformD ( ) const
inline

Definition at line 210 of file Uniform.hpp.

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

◆ getUniformF()

float vl::Uniform::getUniformF ( ) const
inline

Definition at line 209 of file Uniform.hpp.

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

◆ getUniformI()

int vl::Uniform::getUniformI ( ) const
inline

Definition at line 211 of file Uniform.hpp.

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

◆ getUniformU()

unsigned int vl::Uniform::getUniformU ( ) const
inline

Definition at line 212 of file Uniform.hpp.

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

◆ initDouble()

void vl::Uniform::initDouble ( int  count)
inlineprotected

◆ intData()

const int* vl::Uniform::intData ( ) const
inlineprotected

Definition at line 328 of file Uniform.hpp.

References mData, and VL_CHECK.

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

◆ name() [1/2]

const std::string& vl::Uniform::name ( ) const
inline

◆ name() [2/2]

std::string& vl::Uniform::name ( )
inline

Returns the name of the uniform variable.

Definition at line 89 of file Uniform.hpp.

References mName.

◆ rawData() [1/2]

void* vl::Uniform::rawData ( )
inline

Definition at line 316 of file Uniform.hpp.

References mData, and NULL.

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

◆ rawData() [2/2]

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

Definition at line 318 of file Uniform.hpp.

References mData, and NULL.

◆ setName() [1/2]

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::UniformSet::gocUniform(), and vlX::VLXClassWrapper_Uniform::importUniform().

◆ setName() [2/2]

void vl::Uniform::setName ( const std::string &  name)
inline

Sets the name of the uniform variable.

Definition at line 95 of file Uniform.hpp.

References mName, and name().

◆ setUniform() [1/44]

void vl::Uniform::setUniform ( int  count,
const int *  value 
)
inline

◆ setUniform() [2/44]

void vl::Uniform::setUniform ( int  count,
const ivec2 value 
)
inline

Definition at line 146 of file Uniform.hpp.

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

◆ setUniform() [3/44]

void vl::Uniform::setUniform ( int  count,
const ivec3 value 
)
inline

Definition at line 147 of file Uniform.hpp.

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

◆ setUniform() [4/44]

void vl::Uniform::setUniform ( int  count,
const ivec4 value 
)
inline

Definition at line 148 of file Uniform.hpp.

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

◆ setUniform() [5/44]

void vl::Uniform::setUniform ( int  count,
const unsigned int *  value 
)
inline

Definition at line 150 of file Uniform.hpp.

References setUniform1ui().

◆ setUniform() [6/44]

void vl::Uniform::setUniform ( int  count,
const uvec2 value 
)
inline

Definition at line 151 of file Uniform.hpp.

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

◆ setUniform() [7/44]

void vl::Uniform::setUniform ( int  count,
const uvec3 value 
)
inline

Definition at line 152 of file Uniform.hpp.

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

◆ setUniform() [8/44]

void vl::Uniform::setUniform ( int  count,
const uvec4 value 
)
inline

Definition at line 153 of file Uniform.hpp.

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

◆ setUniform() [9/44]

void vl::Uniform::setUniform ( int  count,
const float *  value 
)
inline

Definition at line 155 of file Uniform.hpp.

References setUniform1f().

◆ setUniform() [10/44]

void vl::Uniform::setUniform ( int  count,
const fvec2 value 
)
inline

Definition at line 156 of file Uniform.hpp.

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

◆ setUniform() [11/44]

void vl::Uniform::setUniform ( int  count,
const fvec3 value 
)
inline

Definition at line 157 of file Uniform.hpp.

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

◆ setUniform() [12/44]

void vl::Uniform::setUniform ( int  count,
const fvec4 value 
)
inline

Definition at line 158 of file Uniform.hpp.

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

◆ setUniform() [13/44]

void vl::Uniform::setUniform ( int  count,
const fmat2 value 
)
inline

Definition at line 160 of file Uniform.hpp.

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

◆ setUniform() [14/44]

void vl::Uniform::setUniform ( int  count,
const fmat3 value 
)
inline

Definition at line 161 of file Uniform.hpp.

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

◆ setUniform() [15/44]

void vl::Uniform::setUniform ( int  count,
const fmat4 value 
)
inline

Definition at line 162 of file Uniform.hpp.

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

◆ setUniform() [16/44]

void vl::Uniform::setUniform ( int  count,
const double *  value 
)
inline

Definition at line 164 of file Uniform.hpp.

References setUniform1d().

◆ setUniform() [17/44]

void vl::Uniform::setUniform ( int  count,
const dvec2 value 
)
inline

Definition at line 165 of file Uniform.hpp.

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

◆ setUniform() [18/44]

void vl::Uniform::setUniform ( int  count,
const dvec3 value 
)
inline

Definition at line 166 of file Uniform.hpp.

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

◆ setUniform() [19/44]

void vl::Uniform::setUniform ( int  count,
const dvec4 value 
)
inline

Definition at line 167 of file Uniform.hpp.

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

◆ setUniform() [20/44]

void vl::Uniform::setUniform ( int  count,
const dmat2 value 
)
inline

Definition at line 169 of file Uniform.hpp.

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

◆ setUniform() [21/44]

void vl::Uniform::setUniform ( int  count,
const dmat3 value 
)
inline

Definition at line 170 of file Uniform.hpp.

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

◆ setUniform() [22/44]

void vl::Uniform::setUniform ( int  count,
const dmat4 value 
)
inline

Definition at line 171 of file Uniform.hpp.

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

◆ setUniform() [23/44]

void vl::Uniform::setUniform ( int  value)
inline

Definition at line 175 of file Uniform.hpp.

References setUniform1i().

◆ setUniform() [24/44]

void vl::Uniform::setUniform ( const ivec2 value)
inline

Definition at line 177 of file Uniform.hpp.

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

◆ setUniform() [25/44]

void vl::Uniform::setUniform ( const ivec3 value)
inline

Definition at line 178 of file Uniform.hpp.

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

◆ setUniform() [26/44]

void vl::Uniform::setUniform ( const ivec4 value)
inline

Definition at line 179 of file Uniform.hpp.

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

◆ setUniform() [27/44]

void vl::Uniform::setUniform ( unsigned int  value)
inline

Definition at line 181 of file Uniform.hpp.

References setUniform1ui().

◆ setUniform() [28/44]

void vl::Uniform::setUniform ( const uvec2 value)
inline

Definition at line 183 of file Uniform.hpp.

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

◆ setUniform() [29/44]

void vl::Uniform::setUniform ( const uvec3 value)
inline

Definition at line 184 of file Uniform.hpp.

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

◆ setUniform() [30/44]

void vl::Uniform::setUniform ( const uvec4 value)
inline

Definition at line 185 of file Uniform.hpp.

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

◆ setUniform() [31/44]

void vl::Uniform::setUniform ( float  value)
inline

Definition at line 187 of file Uniform.hpp.

References setUniform1f().

◆ setUniform() [32/44]

void vl::Uniform::setUniform ( const fvec2 value)
inline

Definition at line 189 of file Uniform.hpp.

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

◆ setUniform() [33/44]

void vl::Uniform::setUniform ( const fvec3 value)
inline

Definition at line 190 of file Uniform.hpp.

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

◆ setUniform() [34/44]

void vl::Uniform::setUniform ( const fvec4 value)
inline

Definition at line 191 of file Uniform.hpp.

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

◆ setUniform() [35/44]

void vl::Uniform::setUniform ( const fmat2 value)
inline

Definition at line 193 of file Uniform.hpp.

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

◆ setUniform() [36/44]

void vl::Uniform::setUniform ( const fmat3 value)
inline

Definition at line 194 of file Uniform.hpp.

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

◆ setUniform() [37/44]

void vl::Uniform::setUniform ( const fmat4 value)
inline

Definition at line 195 of file Uniform.hpp.

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

◆ setUniform() [38/44]

void vl::Uniform::setUniform ( double  value)
inline

Definition at line 197 of file Uniform.hpp.

References setUniform1d().

◆ setUniform() [39/44]

void vl::Uniform::setUniform ( const dvec2 value)
inline

Definition at line 199 of file Uniform.hpp.

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

◆ setUniform() [40/44]

void vl::Uniform::setUniform ( const dvec3 value)
inline

Definition at line 200 of file Uniform.hpp.

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

◆ setUniform() [41/44]

void vl::Uniform::setUniform ( const dvec4 value)
inline

Definition at line 201 of file Uniform.hpp.

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

◆ setUniform() [42/44]

void vl::Uniform::setUniform ( const dmat2 value)
inline

Definition at line 203 of file Uniform.hpp.

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

◆ setUniform() [43/44]

void vl::Uniform::setUniform ( const dmat3 value)
inline

Definition at line 204 of file Uniform.hpp.

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

◆ setUniform() [44/44]

void vl::Uniform::setUniform ( const dmat4 value)
inline

Definition at line 205 of file Uniform.hpp.

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

◆ setUniform1d()

void vl::Uniform::setUniform1d ( int  count,
const double *  value 
)
inline

◆ setUniform1f()

void vl::Uniform::setUniform1f ( int  count,
const float *  value 
)
inline

Definition at line 109 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), setUniform(), and setUniformF().

◆ setUniform1i()

void vl::Uniform::setUniform1i ( int  count,
const int *  value 
)
inline

◆ setUniform1ui()

void vl::Uniform::setUniform1ui ( int  count,
const unsigned int *  value 
)
inline

Definition at line 104 of file Uniform.hpp.

References mData, mType, and vl::UT_UNSIGNED_INT.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), setUniform(), and setUniformU().

◆ setUniform2d()

void vl::Uniform::setUniform2d ( int  count,
const double *  value 
)
inline

Definition at line 115 of file Uniform.hpp.

References initDouble(), mData, mType, and vl::UT_DOUBLE_VEC2.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniform2f()

void vl::Uniform::setUniform2f ( int  count,
const float *  value 
)
inline

Definition at line 110 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT_VEC2.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniform2i()

void vl::Uniform::setUniform2i ( int  count,
const int *  value 
)
inline

Definition at line 100 of file Uniform.hpp.

References mData, mType, and vl::UT_INT_VEC2.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniform2ui()

void vl::Uniform::setUniform2ui ( int  count,
const unsigned int *  value 
)
inline

Definition at line 105 of file Uniform.hpp.

References mData, mType, and vl::UT_UNSIGNED_INT_VEC2.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniform3d()

void vl::Uniform::setUniform3d ( int  count,
const double *  value 
)
inline

Definition at line 116 of file Uniform.hpp.

References initDouble(), mData, mType, and vl::UT_DOUBLE_VEC3.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniform3f()

void vl::Uniform::setUniform3f ( int  count,
const float *  value 
)
inline

Definition at line 111 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT_VEC3.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniform3i()

void vl::Uniform::setUniform3i ( int  count,
const int *  value 
)
inline

Definition at line 101 of file Uniform.hpp.

References mData, mType, and vl::UT_INT_VEC3.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniform3ui()

void vl::Uniform::setUniform3ui ( int  count,
const unsigned int *  value 
)
inline

Definition at line 106 of file Uniform.hpp.

References mData, mType, and vl::UT_UNSIGNED_INT_VEC3.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniform4d()

void vl::Uniform::setUniform4d ( int  count,
const double *  value 
)
inline

Definition at line 117 of file Uniform.hpp.

References initDouble(), mData, mType, and vl::UT_DOUBLE_VEC4.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniform4f()

void vl::Uniform::setUniform4f ( int  count,
const float *  value 
)
inline

Definition at line 112 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT_VEC4.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniform4i()

void vl::Uniform::setUniform4i ( int  count,
const int *  value 
)
inline

Definition at line 102 of file Uniform.hpp.

References mData, mType, and vl::UT_INT_VEC4.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniform4ui()

void vl::Uniform::setUniform4ui ( int  count,
const unsigned int *  value 
)
inline

Definition at line 107 of file Uniform.hpp.

References mData, mType, and vl::UT_UNSIGNED_INT_VEC4.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniformD()

void vl::Uniform::setUniformD ( const double &  value)
inline

Definition at line 198 of file Uniform.hpp.

References setUniform1d().

◆ setUniformF()

void vl::Uniform::setUniformF ( const float &  value)
inline

Definition at line 188 of file Uniform.hpp.

References setUniform1f().

Referenced by vl::Terrain::init().

◆ setUniformI()

void vl::Uniform::setUniformI ( const int &  value)
inline

Definition at line 176 of file Uniform.hpp.

References setUniform1i().

Referenced by vl::Terrain::init(), and vl::RaycastVolume::updateUniforms().

◆ setUniformMatrix2d()

void vl::Uniform::setUniformMatrix2d ( int  count,
const double *  value 
)
inline

Definition at line 132 of file Uniform.hpp.

References initDouble(), mData, mType, and vl::UT_DOUBLE_MAT2.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniformMatrix2f()

void vl::Uniform::setUniformMatrix2f ( int  count,
const float *  value 
)
inline

Definition at line 121 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT_MAT2.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniformMatrix2x3d()

void vl::Uniform::setUniformMatrix2x3d ( int  count,
const double *  value 
)
inline

Definition at line 136 of file Uniform.hpp.

References initDouble(), mData, mType, and vl::UT_DOUBLE_MAT2x3.

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

◆ setUniformMatrix2x3f()

void vl::Uniform::setUniformMatrix2x3f ( int  count,
const float *  value 
)
inline

Definition at line 125 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT_MAT2x3.

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

◆ setUniformMatrix2x4d()

void vl::Uniform::setUniformMatrix2x4d ( int  count,
const double *  value 
)
inline

Definition at line 138 of file Uniform.hpp.

References initDouble(), mData, mType, and vl::UT_DOUBLE_MAT2x4.

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

◆ setUniformMatrix2x4f()

void vl::Uniform::setUniformMatrix2x4f ( int  count,
const float *  value 
)
inline

Definition at line 127 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT_MAT2x4.

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

◆ setUniformMatrix3d()

void vl::Uniform::setUniformMatrix3d ( int  count,
const double *  value 
)
inline

Definition at line 133 of file Uniform.hpp.

References initDouble(), mData, mType, and vl::UT_DOUBLE_MAT3.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniformMatrix3f()

void vl::Uniform::setUniformMatrix3f ( int  count,
const float *  value 
)
inline

Definition at line 122 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT_MAT3.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniformMatrix3x2d()

void vl::Uniform::setUniformMatrix3x2d ( int  count,
const double *  value 
)
inline

Definition at line 137 of file Uniform.hpp.

References initDouble(), mData, mType, and vl::UT_DOUBLE_MAT3x2.

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

◆ setUniformMatrix3x2f()

void vl::Uniform::setUniformMatrix3x2f ( int  count,
const float *  value 
)
inline

Definition at line 126 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT_MAT3x2.

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

◆ setUniformMatrix3x4d()

void vl::Uniform::setUniformMatrix3x4d ( int  count,
const double *  value 
)
inline

Definition at line 140 of file Uniform.hpp.

References initDouble(), mData, mType, and vl::UT_DOUBLE_MAT3x4.

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

◆ setUniformMatrix3x4f()

void vl::Uniform::setUniformMatrix3x4f ( int  count,
const float *  value 
)
inline

Definition at line 129 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT_MAT3x4.

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

◆ setUniformMatrix4d()

void vl::Uniform::setUniformMatrix4d ( int  count,
const double *  value 
)
inline

Definition at line 134 of file Uniform.hpp.

References initDouble(), mData, mType, and vl::UT_DOUBLE_MAT4.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniformMatrix4f()

void vl::Uniform::setUniformMatrix4f ( int  count,
const float *  value 
)
inline

Definition at line 123 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT_MAT4.

Referenced by vlX::VLXClassWrapper_Uniform::importUniform(), and setUniform().

◆ setUniformMatrix4x2d()

void vl::Uniform::setUniformMatrix4x2d ( int  count,
const double *  value 
)
inline

Definition at line 139 of file Uniform.hpp.

References initDouble(), mData, mType, and vl::UT_DOUBLE_MAT4x2.

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

◆ setUniformMatrix4x2f()

void vl::Uniform::setUniformMatrix4x2f ( int  count,
const float *  value 
)
inline

Definition at line 128 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT_MAT4x2.

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

◆ setUniformMatrix4x3d()

void vl::Uniform::setUniformMatrix4x3d ( int  count,
const double *  value 
)
inline

Definition at line 141 of file Uniform.hpp.

References initDouble(), mData, mType, and vl::UT_DOUBLE_MAT4x3.

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

◆ setUniformMatrix4x3f()

void vl::Uniform::setUniformMatrix4x3f ( int  count,
const float *  value 
)
inline

Definition at line 130 of file Uniform.hpp.

References mData, mType, and vl::UT_FLOAT_MAT4x3.

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

◆ setUniformU()

void vl::Uniform::setUniformU ( const unsigned int &  value)
inline

Definition at line 182 of file Uniform.hpp.

References setUniform1ui().

◆ singleCount()

int vl::Uniform::singleCount ( ) const
inlineprotected

Definition at line 324 of file Uniform.hpp.

References mData.

Referenced by count().

◆ type()

EUniformType vl::Uniform::type ( ) const
inline

◆ uintData()

const unsigned int* vl::Uniform::uintData ( ) const
inlineprotected

Definition at line 329 of file Uniform.hpp.

References mData, and VL_CHECK.

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

◆ VL_COMPILE_TIME_CHECK()

vl::Uniform::VL_COMPILE_TIME_CHECK ( sizeof(int)  = = sizeof(float))
inlineprotected

Definition at line 321 of file Uniform.hpp.

References mData.

Friends And Related Function Documentation

◆ GLSLProgram

friend class GLSLProgram
friend

Definition at line 63 of file Uniform.hpp.

Member Data Documentation

◆ mData

std::vector<int> vl::Uniform::mData
protected

◆ mName

std::string vl::Uniform::mName
protected

Definition at line 333 of file Uniform.hpp.

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

◆ mType

EUniformType vl::Uniform::mType
protected

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