![]() |
Lysa
0.0
Lysa 3D Engine
|
Inheritance diagram for MaterialManager:Public Member Functions | |
| MaterialManager (size_t capacity) | |
| StandardMaterial & | create () |
| ShaderMaterial & | create (const std::shared_ptr< ShaderMaterial > &orig) |
| ShaderMaterial & | create (const std::string &fragShaderFileName, const std::string &vertShaderFileName="") |
| void | upload (const Material &material) |
| void | flush () |
| auto | getBuffer () const |
| bool | destroy (unique_id id) override |
| bool | destroy (const StandardMaterial &m) |
| bool | destroy (const ShaderMaterial &m) |
Public Member Functions inherited from ResourcesManager< Material > | |
| ResourcesManager (ResourcesManager &) = delete | |
| Material & | create (Args &&...args) |
| virtual bool | destroy (const Material &res) |
| unique_id | getCapacity () const |
| bool | have (const unique_id id) const |
| ResourcesManager & | operator= (ResourcesManager &) = delete |
| Material & | operator[] (const unique_id id) |
| const Material & | operator[] (const unique_id id) const |
| void | use (const unique_id id) |
| virtual | ~ResourcesManager () |
Additional Inherited Members | |
Protected Member Functions inherited from ResourcesManager< Material > | |
| ResourcesManager (const size_t capacity, const std::string &name) | |
| Material & | allocate (std::unique_ptr< Material > instance) |
| bool | isFull () const |
Protected Attributes inherited from ResourcesManager< Material > | |
| std::vector< std::unique_ptr< Material > > | resources |
| MaterialManager | ( | size_t | capacity | ) |
Construct a manager bound to the given runtime context.
| capacity | Initial capacity |
| StandardMaterial& create | ( | ) |
| ShaderMaterial& create | ( | const std::shared_ptr< ShaderMaterial > & | orig | ) |
| ShaderMaterial& create | ( | const std::string & | fragShaderFileName, |
| const std::string & | vertShaderFileName = "" |
||
| ) |
|
inline |
|
inline |
|
overridevirtual |
Reimplemented from lysa::ResourcesManager< Material >::destroy()
| void flush | ( | ) |
|
inline |
| void upload | ( | const Material & | material | ) |