#include <SXCore.h>
  
  
      
        
          | EX sx::Uniform::Uniform  | 
          ( | 
          const string &  | 
          id | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
initializing this with identifier id, and uniformNames 
 
 
  
  
      
        
          | virtual EX sx::Uniform::~Uniform  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
      
        
          | EX const string& sx::Uniform::getUniformName  | 
          ( | 
          const string &  | 
          id | ) | 
           const | 
        
      
 
Returns the uniform name of the variable associated with id. If this association has not be specified yet with setUniformName, idToken is returned 
 
 
      
        
          | EX void sx::Uniform::setUniformName  | 
          ( | 
          const string &  | 
          name,  | 
        
        
           | 
           | 
          const string &  | 
          id  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
sets the name of the uniform variable used in the shader, when the resource with identifyer id uses the uniform variable 
 
 
  
  
      
        
          | virtual void sx::Uniform::use  | 
          ( | 
          Shader &  | 
          shader,  | 
         
        
           | 
           | 
          const string &  | 
          id  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
 
  
  
      
        
          | string sx::Uniform::idToken | 
         
       
   | 
  
protected   | 
  
 
last token of id with '.' being the the delimiter of the tokens in id 
 
 
  
  
      
        
          | unordered_map<string,string> sx::Uniform::uniformNames | 
         
       
   | 
  
protected   | 
  
 
mapping of the identifiers associating them with the names used by a certain resource 
 
 
The documentation for this class was generated from the following file: