fluidvis
|
Public Member Functions | |
EX | UniformFloat (const string &id) |
EX UniformFloat & | operator= (float v) |
EX UniformFloat & | operator<< (float v) |
EX const UniformFloat & | operator>> (float &v) const |
EX void | load () |
EX bool | isLoaded () const |
EX void | use (Shader &shader, const string &id) |
Public Member Functions inherited from sx::Uniform | |
virtual EX | ~Uniform () |
EX void | setUniformName (const string &name, const string &id) |
EX const string & | getUniformName (const string &id) const |
Public Member Functions inherited from sx::SXResource | |
virtual EX | ~SXResource () |
EX const string & | getID () const |
Public Attributes | |
float | value |
Additional Inherited Members | |
Protected Member Functions inherited from sx::Uniform | |
EX | Uniform (const string &id) |
Protected Attributes inherited from sx::Uniform | |
string | idToken |
unordered_map< string, string > | uniformNames |
Protected Attributes inherited from sx::SXResource | |
string | id |
EX sx::UniformFloat::UniformFloat | ( | const string & | id | ) |
constructor initializing this with identifier id
|
virtual |
as this is always loaded, the return value is always true
Implements sx::SXResource.
|
virtual |
as this is always loaded, this method has no effect on this
Implements sx::SXResource.
EX UniformFloat& sx::UniformFloat::operator<< | ( | float | v | ) |
copies float v, and returns a reference to this
EX UniformFloat& sx::UniformFloat::operator= | ( | float | v | ) |
copies float v, and returns a reference to this
EX const UniformFloat& sx::UniformFloat::operator>> | ( | float & | v | ) | const |
copies itself to float v, returns a reference to this
|
virtual |
Implements sx::Uniform.
float sx::UniformFloat::value |
value of the uniform float