ScummVM API documentation
hpl::cGpuProgramManager Class Reference
Inheritance diagram for hpl::cGpuProgramManager:
hpl::iResourceManager

Public Member Functions

 cGpuProgramManager (cFileSearcher *apFileSearcher, iLowLevelGraphics *apLowLevelGraphics, LowLevelResources *apLowLevelResources, LowLevelSystem *apLowLevelSystem)
 
iResourceBaseCreate (const tString &asName)
 
iGpuProgramCreateProgram (const tString &vertex, const tString &fragment, eGpuProgramType aType=eGpuProgramType_LastEnum)
 
void Destroy (iResourceBase *apResource)
 
void Unload (iResourceBase *apResource)
 
- Public Member Functions inherited from hpl::iResourceManager
 iResourceManager (cFileSearcher *apFileSearcher, LowLevelResources *apLowLevelResources, LowLevelSystem *apLowLevelSystem)
 
iResourceBaseGetByName (const tString &asName)
 
iResourceBaseGetByHandle (unsigned long alHandle)
 
cResourceBaseIterator GetResourceBaseIterator ()
 
void DestroyUnused (int alMaxToKeep)
 
virtual void DestroyAll ()
 
virtual void Update (float afTimeStep)
 

Additional Inherited Members

- Protected Member Functions inherited from hpl::iResourceManager
void BeginLoad (const tString &asFile)
 
void EndLoad ()
 
iResourceBaseFindLoadedResource (const tString &asName, tString &asFilePath)
 
void AddResource (iResourceBase *apResource, bool abLog=true)
 
void RemoveResource (iResourceBase *apResource)
 
unsigned long GetHandle ()
 
tString GetTabs ()
 
- Protected Attributes inherited from hpl::iResourceManager
unsigned long mlHandleCount
 
tResourceNameMap m_mapNameResources
 
tResourceHandleMap m_mapHandleResources
 
cFileSearchermpFileSearcher
 
LowLevelResourcesmpLowLevelResources
 
LowLevelSystemmpLowLevelSystem
 
unsigned long mlTimeStart
 
- Static Protected Attributes inherited from hpl::iResourceManager
static int mlTabCount
 

Member Function Documentation

◆ CreateProgram()

iGpuProgram* hpl::cGpuProgramManager::CreateProgram ( const tString vertex,
const tString fragment,
eGpuProgramType  aType = eGpuProgramType_LastEnum 
)

Creates a new GPU program

Parameters
asNamename of the program
asEntrythe entry point of the program (usually "main")
aTypetype of the program
Returns

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