|
RavEngine
|
#include <Material.hpp>
Static Public Member Functions | |
| template<typename T , typename ... A> | |
| static Ref< T > | Get (A &&... args) |
| template<typename T , typename ... A> | |
| static Ref< T > | GetWithKey (RavEngine::CacheBase::unique_key_t key, A &&... args) |
| template<typename T > | |
| static void | Compact () |
Static singleton for managing materials
Shrink memory usage by removing expired entries
|
inlinestatic |
Helper to get a material by type. If one is not allocated, it will be created. Supports constructors via parameter pack
| args | arguments to pass to material constructor if needed |