fluidvis
|
Public Member Functions | |
EX | UniformDouble (const string &id) |
EX UniformDouble & | operator= (double v) |
EX UniformDouble & | operator<< (double v) |
EX const UniformDouble & | operator>> (double &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 | |
double | 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::UniformDouble::UniformDouble | ( | 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 UniformDouble& sx::UniformDouble::operator<< | ( | double | v | ) |
copies float v, and returns a reference to this
EX UniformDouble& sx::UniformDouble::operator= | ( | double | v | ) |
copies double v, and returns a reference to this
EX const UniformDouble& sx::UniformDouble::operator>> | ( | double & | v | ) | const |
copies itself to float v, returns a reference to this
|
virtual |
Implements sx::Uniform.
double sx::UniformDouble::value |
value of the uniform float