fluidvis
|
Public Member Functions | |
EX | UniformVector (const string &id) |
EX Vector & | operator= (const Vector &v) |
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 Member Functions inherited from sx::Vector | |
EXPA | Vector () |
EXPA | Vector (float v) |
EXPA | Vector (float x, float y) |
EXPA | Vector (float x, float y, float z) |
EXPA | Vector (float x, float y, float z, float w) |
EXPA | Vector (const float *v) |
EXPA | Vector (const DVector &vector) |
EXPA | Vector (const Vector &vector) |
EXPA Vector & | operator= (const Vector &v) |
virtual EXPA | ~Vector () |
EXPA float & | operator[] (unsigned int index) |
EXPA float | operator[] (unsigned int index) const |
EXPA Vector & | operator<< (const Vector &v) |
EXPA Vector & | operator<< (const float *v) |
EXPA const Vector & | operator>> (Vector &v) const |
EXPA const Vector & | operator>> (float *v) const |
EXPA Vector & | add (const Vector &v) |
EXPA Vector & | add (float x) |
EXPA Vector & | crossmult (const Vector &v) |
EXPA Vector & | scalarmult (float s) |
EXPA float | innerprod (const Vector &v) const |
EXPA Vector & | leftmult (const Matrix &m) |
EXPA Vector & | rightmult (const Matrix &m) |
EXPA Vector & | normalize () |
EXPA float | distance (const Vector &v) const |
EXPA float | length () const |
EXPA Vector & | random () |
EXPA Vector & | homogenize () |
EXPA bool | equals (const Vector &v) const |
EXPA bool | equals (const Vector &v, float epsilon) const |
Additional Inherited Members | |
Public Attributes inherited from sx::Vector | |
float * | elements |
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::UniformVector::UniformVector | ( | 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.
|
virtual |
Implements sx::Uniform.