|
Nymph Game Engine
Chaiscript based Game Engine
|
Class for shader uniform. More...
#include <uniform.h>
Public Member Functions | |
| Uniform () | |
| Uniform constructor. More... | |
| template<typename T > | |
| void | setData (const std::string &name, const T &data) |
| Sets the data. More... | |
| UniformTypes | getType () const noexcept |
| Gets the type. More... | |
| std::string | getName () const noexcept |
| Gets the name. More... | |
| bool | isDirty () const noexcept |
| Determines if dirty. More... | |
| void | clean () noexcept |
| dirty = false More... | |
| template<typename T > | |
| T | getData () const noexcept |
| Gets the data. More... | |
| bool | operator< (const Uniform &right) const noexcept |
| < operator using name More... | |
| bool | operator== (const Uniform &right) const noexcept |
| == operator More... | |
| bool | operator!= (const Uniform &right) const noexcept |
| != operator More... | |
| std::string | to_string () const noexcept |
| Returns a string representation of the object. More... | |
| template<> | |
| void | setData (const std::string &name, const float &data) |
| template<> | |
| void | setData (const std::string &name, const int &data) |
| template<> | |
| void | setData (const std::string &name, const unsigned int &data) |
| template<> | |
| void | setData (const std::string &name, const bool &data) |
| template<> | |
| float | getData () const noexcept |
| template<> | |
| int | getData () const noexcept |
| template<> | |
| unsigned int | getData () const noexcept |
| template<> | |
| bool | getData () const noexcept |
Class for shader uniform.
|
strong |
| Graphics::Uniform::Uniform | ( | ) |
Uniform constructor.
|
noexcept |
dirty = false
|
noexcept |
Gets the data.
| T | Type of data to get |
Referenced by Graphics::Shader::setUniform().
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
!= operator
| [in] | right | The right |
|
noexcept |
< operator using name
| [in] | right | The right |
|
noexcept |
== operator
| [in] | right | The right |
| void Graphics::Uniform::setData | ( | const std::string & | name, |
| const float & | data | ||
| ) |
| void Graphics::Uniform::setData | ( | const std::string & | name, |
| const int & | data | ||
| ) |
| void Graphics::Uniform::setData | ( | const std::string & | name, |
| const T & | data | ||
| ) |
Sets the data.
| [in] | name | The name |
| [in] | data | The data |
| T | DataType for uniform |
Referenced by Graphics::Renderable::addTexture(), Graphics::TileAnimator< StateType >::onStart(), Graphics::Renderable::onStart(), Graphics::UI::WrappableText::onUpdate(), Graphics::UI::Text::onUpdate(), Graphics::TileAnimator< StateType >::onUpdate(), Graphics::Renderable::onUpdate(), and Graphics::UI::Text::renderCharacter().
| void Graphics::Uniform::setData | ( | const std::string & | name, |
| const unsigned int & | data | ||
| ) |
| void Graphics::Uniform::setData | ( | const std::string & | name, |
| const bool & | data | ||
| ) |
|
noexcept |