![]() |
OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
A singleton manager class that manages shader based programs. More...
#include <OgreShaderProgramManager.h>
Public Member Functions | |
ProgramManager () | |
Class default constructor. | |
~ProgramManager () | |
Class destructor. | |
void | flushGpuProgramsCache () |
Flush the local GPU programs cache. | |
void | releasePrograms (const ProgramSet *programSet) |
Release CPU/GPU programs set associated with the given ProgramSet. | |
![]() | |
Singleton (void) | |
~Singleton (void) | |
Static Public Member Functions | |
static ProgramManager & | getSingleton () |
Override standard Singleton retrieval. | |
static ProgramManager * | getSingletonPtr () |
Get the singleton instance. | |
![]() | |
static ProgramManager & | getSingleton (void) |
Get the singleton instance. | |
static ProgramManager * | getSingletonPtr (void) |
Get the singleton instance. | |
A singleton manager class that manages shader based programs.
Ogre::RTShader::ProgramManager::ProgramManager | ( | ) |
Class default constructor.
Referenced by getSingleton(), and getSingletonPtr().
Ogre::RTShader::ProgramManager::~ProgramManager | ( | ) |
Class destructor.
|
static |
Override standard Singleton retrieval.
Why do we do this? Well, it's because the Singleton implementation is in a .h file, which means it gets compiled into anybody who includes it. This is needed for the Singleton template to work, but we actually only want it compiled into the implementation of the class based on the Singleton, not all of them. If we don't change this, we get link errors when trying to use the Singleton-based class from an outside dll.
References ProgramManager().
|
static |
Get the singleton instance.
References ProgramManager().
void Ogre::RTShader::ProgramManager::releasePrograms | ( | const ProgramSet * | programSet | ) |
Release CPU/GPU programs set associated with the given ProgramSet.
programSet | The ProgramSet holds the programs. |
References ProgramSet.
void Ogre::RTShader::ProgramManager::flushGpuProgramsCache | ( | ) |
Flush the local GPU programs cache.
References ProgramSet.