Manages the programs recorded. More...
Additional Inherited Members | |
Public Member Functions inherited from nkGraphics::Manager< Program > | |
Program * | createOrRetrieve (nkMemory::StringView name) |
Program * | record (nkMemory::StringView name, nkMemory::UniquePtr< Program > resource) |
Program * | get (nkMemory::StringView name) const |
Program * | getByIndex (unsigned int index) const |
void | rename (nkMemory::StringView currentName, nkMemory::StringView newName) |
void | erase (nkMemory::StringView name) |
nkMemory::UniquePtr< Program > | relinquish (nkMemory::StringView name) |
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.