A shader uniform. More...
#include <Luminous/ShaderUniform.hpp>
Public Types | |
| enum | Type { Unknown, Int, Int2, Int3, Int4, UnsignedInt, UnsignedInt2, UnsignedInt3, UnsignedInt4, Float, Float2, Float3, Float4, Float2x2, Float3x3, Float4x4 } |
| Type of this uniform. More... | |
Public Member Functions | |
| virtual const char * | data () const |
| Returns the pointer to the stored data. More... | |
| ShaderUniform () | |
| Default constructor Sets the Type of the uniform to Unknown. | |
| ShaderUniform (int data) | |
| Constructor for singed integer Sets Type of this uniform to Int. More... | |
| ShaderUniform (unsigned int data) | |
| Constructor for unsigned integer Sets Type of this uniform to UnsignedInt. More... | |
| ShaderUniform (float data) | |
| Constructor for floating point number Sets Type of this uniform to Float. More... | |
| ShaderUniform (const Nimble::Vector2i &data) | |
| Constructor for 2-dimensional signed integer vector Sets Type of this uniform to Int2. More... | |
| ShaderUniform (const Nimble::Vector3i &data) | |
| Constructor for 3-dimensional signed integer vector Sets Type of this uniform to Int3. More... | |
| ShaderUniform (const Nimble::Vector4i &data) | |
| Constructor for 4-dimensional signed integer vector Sets Type of this uniform to Int4. More... | |
| ShaderUniform (const Nimble::Vector2u &data) | |
| Constructor for 2-dimensional unsigned integer vector Sets Type of this uniform to UnsignedInt2. More... | |
| ShaderUniform (const Nimble::Vector3u &data) | |
| Constructor for 3-dimensional unsigned integer vector Sets Type of this uniform to UnsignedInt3. More... | |
| ShaderUniform (const Nimble::Vector4u &data) | |
| Constructor for 4-dimensional unsigned integer vector Sets Type of this uniform to UnsignedInt4. More... | |
| ShaderUniform (const Nimble::Vector2f &data) | |
| Constructor for 2-dimensional floating point vector Sets Type of this uniform to Float2. More... | |
| ShaderUniform (const Nimble::Vector3f &data) | |
| Constructor for 3-dimensional floating point vector Sets Type of this uniform to Float3. More... | |
| ShaderUniform (const Nimble::Vector4f &data) | |
| Constructor for 4-dimensional floating point vector Sets Type of this uniform to Float4. More... | |
| ShaderUniform (const Nimble::Matrix2f &data) | |
| Constructor for 2x2-dimensional matrix Sets Type of this uniform to Float2x2. More... | |
| ShaderUniform (const Nimble::Matrix3f &data) | |
| Constructor for 3x3-dimensional matrix Sets Type of this uniform to Float3x3. More... | |
| ShaderUniform (const Nimble::Matrix4f &data) | |
| Constructor for 4x4-dimensional matrix Sets Type of this uniform to Float4x4. More... | |
| virtual Type | type () const |
| Returns the type of the stored data. More... | |
A shader uniform.
Shader uniforms are used to pass uniform variables to OpenGL shaders.
Type of this uniform.
|
inline |
Constructor for singed integer Sets Type of this uniform to Int.
| data | Value of the uniform |
|
inline |
Constructor for unsigned integer Sets Type of this uniform to UnsignedInt.
| data | Value of the uniform |
|
inline |
Constructor for floating point number Sets Type of this uniform to Float.
| data | Value of the uniform |
|
inline |
Constructor for 2-dimensional signed integer vector Sets Type of this uniform to Int2.
| data | Value of the uniform |
|
inline |
Constructor for 3-dimensional signed integer vector Sets Type of this uniform to Int3.
| data | Value of the uniform |
|
inline |
Constructor for 4-dimensional signed integer vector Sets Type of this uniform to Int4.
| data | Value of the uniform |
|
inline |
Constructor for 2-dimensional unsigned integer vector Sets Type of this uniform to UnsignedInt2.
| data | Value of the uniform |
|
inline |
Constructor for 3-dimensional unsigned integer vector Sets Type of this uniform to UnsignedInt3.
| data | Value of the uniform |
|
inline |
Constructor for 4-dimensional unsigned integer vector Sets Type of this uniform to UnsignedInt4.
| data | Value of the uniform |
|
inline |
Constructor for 2-dimensional floating point vector Sets Type of this uniform to Float2.
| data | Value of the uniform |
|
inline |
Constructor for 3-dimensional floating point vector Sets Type of this uniform to Float3.
| data | Value of the uniform |
|
inline |
Constructor for 4-dimensional floating point vector Sets Type of this uniform to Float4.
| data | Value of the uniform |
|
inline |
Constructor for 2x2-dimensional matrix Sets Type of this uniform to Float2x2.
| data | Value of the uniform |
|
inline |
Constructor for 3x3-dimensional matrix Sets Type of this uniform to Float3x3.
| data | Value of the uniform |
|
inline |
Constructor for 4x4-dimensional matrix Sets Type of this uniform to Float4x4.
| data | Value of the uniform |
|
inlinevirtual |
Returns the pointer to the stored data.
|
inlinevirtual |
Returns the type of the stored data.