Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
Wraps an OpenGL Shading Language uniform to be associated to a GLSLProgram (see vl::GLSLProgram documentation). More...
#include <Uniform.hpp>
Public Member Functions | |
| 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 | 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 | 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 (const int &value) |
| void | setUniform (const ivec2 &value) |
| void | setUniform (const ivec3 &value) |
| void | setUniform (const ivec4 &value) |
| void | setUniform (const unsigned int &value) |
| void | setUniform (const uvec2 &value) |
| void | setUniform (const uvec3 &value) |
| void | setUniform (const uvec4 &value) |
| void | setUniform (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 | 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) |
| EUniformType | type () const |
| int | count () const |
Protected Member Functions | |
| VL_COMPILE_TIME_CHECK (sizeof(int)==sizeof(float)) | |
| void | initData (int count) |
| float * | floatData () |
| int * | intData () |
| unsigned int * | uintData () |
Protected Attributes | |
| EUniformType | mType |
| std::vector< int > | mData |
| std::string | mName |
Friends | |
| class | GLSLProgram |
Wraps an OpenGL Shading Language uniform to be associated to a GLSLProgram (see vl::GLSLProgram documentation).
| vl::Uniform::Uniform | ( | ) | [inline] |
| vl::Uniform::Uniform | ( | const std::string & | name ) | [inline] |
| virtual const char* vl::Uniform::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::Object.
| const std::string& vl::Uniform::name | ( | ) | const [inline] |
Returns the name of the uniform variable.
| std::string& vl::Uniform::name | ( | ) | [inline] |
Returns the name of the uniform variable.
| void vl::Uniform::setName | ( | const std::string & | name ) | [inline] |
Sets the name of the uniform variable.
| void vl::Uniform::setUniform1i | ( | int | count, |
| const int * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform2i | ( | int | count, |
| const int * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform3i | ( | int | count, |
| const int * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform4i | ( | int | count, |
| const int * | value | ||
| ) | [inline] |
| 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] |
| void vl::Uniform::setUniform3f | ( | int | count, |
| const float * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform4f | ( | int | count, |
| const float * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniformMatrix2f | ( | int | count, |
| const float * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniformMatrix3f | ( | int | count, |
| const float * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniformMatrix4f | ( | int | count, |
| const float * | value | ||
| ) | [inline] |
| 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::setUniform | ( | int | count, |
| const ivec2 * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform | ( | int | count, |
| const ivec3 * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform | ( | int | count, |
| const ivec4 * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform | ( | int | count, |
| const uvec2 * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform | ( | int | count, |
| const uvec3 * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform | ( | int | count, |
| const uvec4 * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform | ( | int | count, |
| const fvec2 * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform | ( | int | count, |
| const fvec3 * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform | ( | int | count, |
| const fvec4 * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform | ( | int | count, |
| const fmat2 * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform | ( | int | count, |
| const fmat3 * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform | ( | int | count, |
| const fmat4 * | value | ||
| ) | [inline] |
| void vl::Uniform::setUniform | ( | const int & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const ivec2 & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const ivec3 & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const ivec4 & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const unsigned int & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const uvec2 & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const uvec3 & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const uvec4 & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const float & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const fvec2 & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const fvec3 & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const fvec4 & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const fmat2 & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const fmat3 & | value ) | [inline] |
| void vl::Uniform::setUniform | ( | const fmat4 & | value ) | [inline] |
| void vl::Uniform::getUniform | ( | float * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | int * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | unsigned int * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | ivec2 * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | ivec3 * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | ivec4 * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | uvec2 * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | uvec3 * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | uvec4 * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | fvec2 * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | fvec3 * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | fvec4 * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | fmat2 * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | fmat3 * | value ) | [inline] |
| void vl::Uniform::getUniform | ( | fmat4 * | value ) | [inline] |
| EUniformType vl::Uniform::type | ( | ) | const [inline] |
| int vl::Uniform::count | ( | ) | const [inline] |
| vl::Uniform::VL_COMPILE_TIME_CHECK | ( | sizeof(int) | = =sizeof(float) ) |
[protected] |
| void vl::Uniform::initData | ( | int | count ) | [inline, protected] |
| float* vl::Uniform::floatData | ( | ) | [inline, protected] |
| int* vl::Uniform::intData | ( | ) | [inline, protected] |
| unsigned int* vl::Uniform::uintData | ( | ) | [inline, protected] |
friend class GLSLProgram [friend] |
EUniformType vl::Uniform::mType [protected] |
std::vector<int> vl::Uniform::mData [protected] |
std::string vl::Uniform::mName [protected] |