Go to the documentation of this file.
28 #ifndef __ShaderProgramWriterManager_H__
29 #define __ShaderProgramWriterManager_H__
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
void addFactory(ProgramWriterFactory *factory)
Add a new factory object for high-level programs of a given language.
ProgramWriter * createProgramWriter(const String &language)
Create a new, unloaded HighLevelGpuProgram.
Base class interface for shader program writers.
void removeFactory(ProgramWriterFactory *factory)
Remove a factory object for high-level programs of a given language.
virtual ~ProgramWriterFactory()
FactoryMap mFactories
Factories capable of creating ShaderProgramWriterFactory instances.
Template class for creating single-instance global classes.
virtual const String & getTargetLanguage(void) const =0
Get the name of the language this factory creates programs for.
Interface definition for factories of ShaderProgramWriter.
bool isLanguageSupported(const String &lang)
Returns whether a given high-level language is supported.
virtual ProgramWriter * create(void)=0
Create writer instance.
static ProgramWriterManager * getSingletonPtr()
Override standard Singleton retrieval.
map< String, ProgramWriterFactory * >::type FactoryMap
static ProgramWriterManager & getSingleton()
Override standard Singleton retrieval.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.