API Documentation
Static Public Attributes | List of all members
nkGraphics::MeshManager Class Referencefinal

Manages the meshes recorded. More...

Inheritance diagram for nkGraphics::MeshManager:
nkGraphics::Manager< Mesh >

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 >
MeshcreateOrRetrieve (nkMemory::StringView name)
 
Meshrecord (nkMemory::StringView name, nkMemory::UniquePtr< Mesh > resource)
 
Meshget (nkMemory::StringView name) const
 
MeshgetByIndex (unsigned int index) const
 
void rename (nkMemory::StringView currentName, nkMemory::StringView newName)
 
void erase (nkMemory::StringView name)
 
nkMemory::UniquePtr< Meshrelinquish (nkMemory::StringView name)
 

Detailed Description

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.


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