Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
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 (const std::filesystem::path &path)
 
const std::vector< std::filesystem::path > & getShaderSearchPaths ()
 
void addShaderResource (std::string key, std::string resource)
 
void addShaderResource (std::unique_ptr< ShaderResource > resource)
 
void addShaderResource (std::shared_ptr< ShaderResource > resource)
 
std::shared_ptr< ShaderResourcegetShaderResource (std::string_view 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 (const Singleton &)=delete
 
void operator= (const Singleton &)=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 file: