Lagrange
Shader Class Reference

Public Member Functions

 Shader (const std::string &code, const ShaderDefines &defines)
 
bool bind () const
 
const ShaderValueoperator[] (const std::string &name)
 
const std::string & get_source () const
 
std::string & get_source ()
 
const ShaderDefines & get_defines () const
 
const std::unordered_map< StringID, ShaderValue > & uniforms () const
 
const std::unordered_map< StringID, ShaderValue > & attribs () const
 
const std::unordered_map< StringID, std::string > & names () const
 
const std::string & name (StringID id) const
 
const ShaderValueuniform (const std::string &name) const
 
const ShaderValueuniform (StringID id) const
 
const ShaderValueattrib (const std::string &name) const
 
const ShaderValueattrib (StringID id) const
 
const std::unordered_map< StringID, int > & sampler_indices () const
 
const std::unordered_map< StringID, ShaderTextureProperty > & texture_properties () const
 
const std::unordered_map< StringID, ShaderFloatProperty > & float_properties () const
 
const std::unordered_map< StringID, ShaderColorProperty > & color_properties () const
 
const std::unordered_map< StringID, ShaderVectorProperty > & vector_properties () const
 
const std::unordered_map< StringID, ShaderBoolProperty > & bool_properties () const
 
const std::unordered_map< StringID, ShaderIntProperty > & int_properties () const
 
void upload_default_values ()
 

Static Public Member Functions

static void unbind ()
 

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