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

Public Member Functions

EX UniformFloat (const string &id)
 
EX UniformFloatoperator= (float v)
 
EX UniformFloatoperator<< (float v)
 
EX const UniformFloatoperator>> (float &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

float 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::UniformFloat::UniformFloat ( const string &  id)

constructor initializing this with identifier id

Member Function Documentation

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

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

Implements sx::SXResource.

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

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

Implements sx::SXResource.

EX UniformFloat& sx::UniformFloat::operator<< ( float  v)

copies float v, and returns a reference to this

EX UniformFloat& sx::UniformFloat::operator= ( float  v)

copies float v, and returns a reference to this

EX const UniformFloat& sx::UniformFloat::operator>> ( float &  v) const

copies itself to float v, returns a reference to this

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

Member Data Documentation

float sx::UniformFloat::value

value of the uniform float


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