![]() |
Lysa
0.0
Lysa 3D Engine
|
Inheritance diagram for MeshManager:Public Member Functions | |
| MeshManager (size_t capacity, size_t vertexCapacity, size_t indexCapacity, size_t surfaceCapacity) | |
| Mesh & | create (const std::vector< Vertex > &vertices, const std::vector< uint32 > &indices, const std::vector< MeshSurface > &surfaces, const std::string &name="") |
| Mesh & | create (const std::string &name="") |
| void | upload (unique_id id) |
| void | flush () |
| auto | getMeshSurfaceBuffer () const |
| auto | getVertexBuffer () const |
| auto | getIndexBuffer () const |
| bool | destroy (unique_id id) override |
| bool | destroy (const Mesh &m) override |
Public Member Functions inherited from ResourcesManager< Mesh > | |
| ResourcesManager (ResourcesManager &) = delete | |
| Mesh & | create (Args &&...args) |
| unique_id | getCapacity () const |
| bool | have (const unique_id id) const |
| ResourcesManager & | operator= (ResourcesManager &) = delete |
| Mesh & | operator[] (const unique_id id) |
| const Mesh & | operator[] (const unique_id id) const |
| void | use (const unique_id id) |
| virtual | ~ResourcesManager () |
Additional Inherited Members | |
Protected Member Functions inherited from ResourcesManager< Mesh > | |
| ResourcesManager (const size_t capacity, const std::string &name) | |
| Mesh & | allocate (std::unique_ptr< Mesh > instance) |
| bool | isFull () const |
Protected Attributes inherited from ResourcesManager< Mesh > | |
| std::vector< std::unique_ptr< Mesh > > | resources |
| MeshManager | ( | size_t | capacity, |
| size_t | vertexCapacity, | ||
| size_t | indexCapacity, | ||
| size_t | surfaceCapacity | ||
| ) |
Construct a new manager
| capacity | maximum capacity |
| vertexCapacity | |
| indexCapacity | |
| surfaceCapacity |
| Mesh& create | ( | const std::string & | name = "" | ) |
| Mesh& create | ( | const std::vector< Vertex > & | vertices, |
| const std::vector< uint32 > & | indices, | ||
| const std::vector< MeshSurface > & | surfaces, | ||
| const std::string & | name = "" |
||
| ) |
|
inlineoverridevirtual |
Reimplemented from lysa::ResourcesManager< Mesh >::destroy()
|
overridevirtual |
Reimplemented from lysa::ResourcesManager< Mesh >::destroy()
| void flush | ( | ) |
|
inline |
|
inline |
|
inline |
| void upload | ( | unique_id | id | ) |