fluidvis
Public Member Functions | List of all members
sx::UniformVector Class Reference
Inheritance diagram for sx::UniformVector:
sx::Uniform sx::Vector sx::SXResource

Public Member Functions

EX UniformVector (const string &id)
 
EX Vectoroperator= (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 Vectoroperator= (const Vector &v)
 
virtual EXPA ~Vector ()
 
EXPA float & operator[] (unsigned int index)
 
EXPA float operator[] (unsigned int index) const
 
EXPA Vectoroperator<< (const Vector &v)
 
EXPA Vectoroperator<< (const float *v)
 
EXPA const Vectoroperator>> (Vector &v) const
 
EXPA const Vectoroperator>> (float *v) const
 
EXPA Vectoradd (const Vector &v)
 
EXPA Vectoradd (float x)
 
EXPA Vectorcrossmult (const Vector &v)
 
EXPA Vectorscalarmult (float s)
 
EXPA float innerprod (const Vector &v) const
 
EXPA Vectorleftmult (const Matrix &m)
 
EXPA Vectorrightmult (const Matrix &m)
 
EXPA Vectornormalize ()
 
EXPA float distance (const Vector &v) const
 
EXPA float length () const
 
EXPA Vectorrandom ()
 
EXPA Vectorhomogenize ()
 
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
 

Constructor & Destructor Documentation

EX sx::UniformVector::UniformVector ( const string &  id)

constructor initializing this with identifier id

Member Function Documentation

EX bool sx::UniformVector::isLoaded ( ) const
virtual

as this is always loaded, the return value is always true

Implements sx::SXResource.

EX void sx::UniformVector::load ( )
virtual

as this is always loaded, this method has no effect on this

Implements sx::SXResource.

EX Vector& sx::UniformVector::operator= ( const Vector v)

assignment operator

EX void sx::UniformVector::use ( Shader shader,
const string &  id 
)
virtual

The documentation for this class was generated from the following file: