API Documentation
MaterialManager.h
1 // MaterialManager.h
3 //
5 
6 namespace nkAstraeus
7 {
13  class MaterialManager final : public nkCommon::MaybeSingletonClass<MaterialManager>
14  {
15  public :
16 
17  // Destructor
21  virtual ~MaterialManager () ;
22 
71  Material* getByIndex (unsigned int id) ;
78  void rename (nkMemory::StringView currentName, nkMemory::StringView newName) ;
92  } ;
93 }
nkAstraeus::MaterialManager::getByIndex
Material * getByIndex(unsigned int id)
nkAstraeus::MaterialManager::record
Material * record(nkMemory::StringView name, nkMemory::UniquePtr< Material > resource)
nkAstraeus::MaterialManager
Manages the materials available in the component.
Definition: MaterialManager.h:14
nkAstraeus::MATERIAL_TYPE
MATERIAL_TYPE
Lists all materials supported.
Definition: MaterialType.h:12
nkAstraeus::MaterialManager::relinquish
nkMemory::UniquePtr< Material > relinquish(nkMemory::StringView name)
nkAstraeus::MaterialManager::~MaterialManager
virtual ~MaterialManager()
nkAstraeus::MaterialManager::get
Material * get(nkMemory::StringView name)
nkAstraeus::MaterialManager::rename
void rename(nkMemory::StringView currentName, nkMemory::StringView newName)
nkAstraeus
Encompasses all API of component NilkinsAstraeus.
Definition: BlurComplexEffect.h:7
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkAstraeus::MaterialManager::createOrRetrieve
Material * createOrRetrieve(nkMemory::StringView name, MATERIAL_TYPE type)
nkAstraeus::MaterialManager::erase
void erase(nkMemory::StringView name)
nkAstraeus::Material
Base class for all materials in the component.
Definition: Material.h:16