AnimEngine
Public Member Functions | Static Public Member Functions | List of all members
ShaderLibrary Class Reference

Public Member Functions

void add (const string &name, Program *program)
 
void add (const char *name, Program *program)
 
bool loadFromJSONCollection (string path, bool silent=false)
 
bool buildAndAdd (string name, const json &program_obj)
 
bool buildAndAdd (const char *const name, const json &program_obj)
 
bool buildAndAdd (string name, istream &vertex, istream &fragment)
 
bool buildAndAdd (const char *const name, istream &vertex, istream &fragment)
 
bool buildAndAdd (string name, const string &vpath, const string &fpath)
 
bool buildAndAdd (const char *const name, const string &vpath, const string &fpath)
 
void printLibary () const
 
void makeActive (const string &name)
 
void makeActive (const char *name)
 
void fastActivate (Program *prog)
 
ProgramgetActive ()
 
ProgramgetActivePtr ()
 
Programoperator[] (const string &name)
 
Programoperator[] (const char *name)
 
ProgramgetPtr (const string &name)
 
ProgramgetPtr (const char *name)
 
void dumpBinary (const string &name)
 
void dumpBinary (const char *name)
 
 ShaderLibrary (ShaderLibrary const &)=delete
 
void operator= (ShaderLibrary const &)=delete
 

Static Public Member Functions

static ShaderLibrarygetInstance ()
 

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