RavEngine
Loading...
Searching...
No Matches
RavEngine::Material::Manager Class Reference

#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 ()
 

Detailed Description

Static singleton for managing materials

Member Function Documentation

◆ Compact()

template<typename T >
static void RavEngine::Material::Manager::Compact ( )
inlinestatic

Shrink memory usage by removing expired entries

◆ Get()

template<typename T , typename ... A>
static Ref< T > RavEngine::Material::Manager::Get ( A &&...  args)
inlinestatic

Helper to get a material by type. If one is not allocated, it will be created. Supports constructors via parameter pack

Parameters
argsarguments to pass to material constructor if needed

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