Inviwo  0.9.10.1
Inviwo documentation
inviwo::ShaderManager Class Reference
+ Inheritance diagram for inviwo::ShaderManager:

Public Types

using Callback = std::function< void(GLuint)>
 

Public Member Functions

 ShaderManager (const ShaderManager &)=delete
 
ShaderManageroperator= (const ShaderManager &)=delete
 
void registerShader (Shader *shader)
 
void unregisterShader (Shader *shader)
 
bool isRegistered (Shader *shader) const
 
int getGlobalGLSLVersion ()
 
void addShaderSearchPath (std::string)
 
const std::vector< std::string > & getShaderSearchPaths ()
 
void addShaderResource (std::string key, std::string resource)
 
void addShaderResource (std::string key, std::unique_ptr< ShaderResource > resource)
 
std::shared_ptr< ShaderResourcegetShaderResource (std::string key)
 
const std::vector< Shader * > & getShaders () const
 
void rebuildAllShaders ()
 
void setOpenGLSettings (OpenGLSettings *settings)
 
Shader::OnError getOnShaderError () const
 
template<typename T >
std::shared_ptr< Callback > onDidAddShader (T &&callback)
 
template<typename T >
std::shared_ptr< Callback > onWillRemoveShader (T &&callback)
 
OpenGLCapabilitiesgetOpenGLCapabilities ()
 
- Public Member Functions inherited from inviwo::Singleton< ShaderManager >
 Singleton (Singleton< ShaderManager > const &)=delete
 
void operator= (Singleton< ShaderManager > const &)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from inviwo::Singleton< ShaderManager >
static void init ()
 
static void init (ShaderManager *instance)
 
static ShaderManagergetPtr ()
 
static void deleteInstance ()
 
static bool isInitialized ()
 

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