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

Public Member Functions

EX UniformMatrix (const string &id)
 
EX Matrixoperator= (const Matrix &m)
 
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::Matrix
EXPA Matrix ()
 
EXPA Matrix (float m)
 
EXPA Matrix (float m00, float m01, float m10, float m11)
 
EXPA Matrix (float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
 
EXPA Matrix (float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
 
EXPA Matrix (const Vector &m0, const Vector &m1, const Vector &m2, const Vector &m3)
 
EXPA Matrix (const float *m)
 
EXPA Matrix (const DMatrix &m)
 
EXPA Matrix (const Matrix &m)
 
EXPA Matrixoperator= (const Matrix &m)
 
virtual EXPA ~Matrix ()
 
EXPA float & operator[] (unsigned int index)
 
EXPA float operator[] (unsigned int index) const
 
EXPA Matrixoperator<< (const Matrix &m)
 
EXPA Matrixoperator<< (const float *m)
 
EXPA const Matrixoperator>> (Matrix &m) const
 
EXPA const Matrixoperator>> (float *m) const
 
EXPA Matrixadd (const Matrix &m)
 
EXPA Matrixadd (float m)
 
EXPA Matrixleftmult (const Matrix &m)
 
EXPA Matrixrightmult (const Matrix &m)
 
EXPA Matrixscalarmult (float s)
 
EXPA Matrixtranspose ()
 
EXPA Matrixidentity ()
 
EXPA Matrixinverse ()
 
EXPA float determinant () const
 
EXPA float cofactor (unsigned int row, unsigned int column) const
 
EXPA Matrixrandom ()
 
EXPA Matrixrotate (const Vector &m, float angle)
 
EXPA Matrixtranslate (const Vector &v)
 
EXPA Matrixscale (const Vector &v)
 
EXPA Matrixshear (const Vector &v)
 
EXPA Matrixsubmatrix ()
 
EXPA MatrixnormalMatrix ()
 
EXPA MatrixviewMatrix (const Vector &position, const Vector &view, const Vector &up)
 
EXPA MatrixperspectiveMatrix (float angle, float width, float height, float znear, float zfar)
 
EXPA MatrixorthographicPerspeciveMatrix (float left, float right, float bottom, float top, float znear, float zfar)
 
EXPA bool equals (const Matrix &m) const
 
EXPA bool equals (const Matrix &m, float epsilon) const
 

Additional Inherited Members

- Public Attributes inherited from sx::Matrix
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::UniformMatrix::UniformMatrix ( const string &  id)

constructor initializing this with identifier id

Member Function Documentation

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

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

Implements sx::SXResource.

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

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

Implements sx::SXResource.

EX Matrix& sx::UniformMatrix::operator= ( const Matrix m)

assignment operator

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

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