API Documentation
List of all members
nkGraphics::ProgramManager Class Referencefinal

Manages the programs recorded. More...

Inheritance diagram for nkGraphics::ProgramManager:
nkGraphics::Manager< Program >

Additional Inherited Members

- Public Member Functions inherited from nkGraphics::Manager< Program >
ProgramcreateOrRetrieve (nkMemory::StringView name)
 
Programrecord (nkMemory::StringView name, nkMemory::UniquePtr< Program > resource)
 
Programget (nkMemory::StringView name) const
 
ProgramgetByIndex (unsigned int index) const
 
void rename (nkMemory::StringView currentName, nkMemory::StringView newName)
 
void erase (nkMemory::StringView name)
 
nkMemory::UniquePtr< Programrelinquish (nkMemory::StringView name)
 

Detailed Description

Manages the programs recorded.

Program creation / deletion can go through this class, allowing it to act as a repository of resources which lifetime will get managed as needed. Like any Manager, it is always owning the memory it owns, unless it passes back the ownership explicitly.


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