shiny
0.4
a shader and material management library for OGRE
|
Public Member Functions | |
OgrePlatform (const std::string &resourceGroupName, const std::string &basePath) | |
virtual Ogre::Technique * | handleSchemeNotFound (unsigned short schemeIndex, const Ogre::String &schemeName, Ogre::Material *originalMaterial, unsigned short lodIndex, const Ogre::Renderable *rend) |
Public Member Functions inherited from sh::Platform | |
Platform (const std::string &basePath) | |
void | setCacheFolder (const std::string &folder) |
set the folder to use for shader caching | |
Public Member Functions inherited from Ogre::MaterialManager::Listener | |
virtual bool | afterIlluminationPassesCreated (Technique *technique) |
virtual bool | beforeIlluminationPassesCleared (Technique *technique) |
Static Public Member Functions | |
static OgreMaterialSerializer & | getSerializer () |
Protected Member Functions | |
virtual bool | supportsShaderSerialization () |
virtual bool | supportsMaterialQueuedListener () |
Protected Member Functions inherited from sh::Platform | |
MaterialInstance * | fireMaterialRequested (const std::string &name, const std::string &configuration, unsigned short lodIndex) |
Protected Attributes | |
std::string | mResourceGroup |
std::map< std::string, Ogre::GpuSharedParametersPtr > | mSharedParameters |
Protected Attributes inherited from sh::Platform | |
std::string | mCacheFolder |
Factory * | mFactory |
Static Protected Attributes | |
static OgreMaterialSerializer * | sSerializer |
Friends | |
class | ShaderInstance |
class | Factory |
|
protectedvirtual |
this will be true if the platform supports a listener that notifies the system whenever a material is requested for rendering. if this is supported, shaders can be compiled on-demand when needed (and not earlier)
Reimplemented from sh::Platform.
|
protectedvirtual |
this will be true if the platform supports serialization (writing shader microcode to disk) and deserialization (create gpu program from saved microcode)
Reimplemented from sh::Platform.