shiny  0.4
a shader and material management library for OGRE
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
sh::OgrePlatform Class Reference
+ Inheritance diagram for sh::OgrePlatform:

Public Member Functions

 OgrePlatform (const std::string &resourceGroupName, const std::string &basePath)
 
virtual Ogre::TechniquehandleSchemeNotFound (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 OgreMaterialSerializergetSerializer ()
 

Protected Member Functions

virtual bool supportsShaderSerialization ()
 
virtual bool supportsMaterialQueuedListener ()
 
- Protected Member Functions inherited from sh::Platform
MaterialInstancefireMaterialRequested (const std::string &name, const std::string &configuration, unsigned short lodIndex)
 

Protected Attributes

std::string mResourceGroup
 
std::map< std::string, Ogre::GpuSharedParametersPtrmSharedParameters
 
- Protected Attributes inherited from sh::Platform
std::string mCacheFolder
 
FactorymFactory
 

Static Protected Attributes

static OgreMaterialSerializersSerializer
 

Friends

class ShaderInstance
 
class Factory
 

Member Function Documentation

◆ supportsMaterialQueuedListener()

virtual bool sh::OgrePlatform::supportsMaterialQueuedListener ( )
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)

Todo:
the Factory is not designed yet to handle the case where this method returns false

Reimplemented from sh::Platform.

◆ supportsShaderSerialization()

virtual bool sh::OgrePlatform::supportsShaderSerialization ( )
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.


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