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

Public Member Functions

EX UniformDouble (const string &id)
 
EX UniformDoubleoperator= (double v)
 
EX UniformDoubleoperator<< (double v)
 
EX const UniformDoubleoperator>> (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
 

Constructor & Destructor Documentation

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

constructor initializing this with identifier id

Member Function Documentation

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

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

Implements sx::SXResource.

EX void sx::UniformDouble::load ( )
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

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

Member Data Documentation

double sx::UniformDouble::value

value of the uniform float


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