Manages the meshes recorded. More...
Static Public Attributes | |
static const nkMemory::StringView | POST_PROCESSING_MESH = "NILKINS_POSTPROCESS_SQUARE" |
Name for the built-in mesh used for post processing passes. | |
Additional Inherited Members | |
Public Member Functions inherited from nkGraphics::Manager< Mesh > | |
Mesh * | createOrRetrieve (nkMemory::StringView name) |
Mesh * | record (nkMemory::StringView name, nkMemory::UniquePtr< Mesh > resource) |
Mesh * | get (nkMemory::StringView name) const |
Mesh * | getByIndex (unsigned int index) const |
void | rename (nkMemory::StringView currentName, nkMemory::StringView newName) |
void | erase (nkMemory::StringView name) |
nkMemory::UniquePtr< Mesh > | relinquish (nkMemory::StringView name) |
Manages the meshes recorded.
Mesh 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.