HDK
|
#include <GLTF_Cache.h>
Public Member Functions | |
const UT_SharedPtr< const GLTF_Loader > | LoadLoader (const UT_StringHolder &path) |
bool | EvictLoader (const UT_StringHolder &path) |
Static Public Member Functions | |
static GLTF_Cache & | GetInstance () |
A singleton responsible for storing a cached GLTF_Loader.
Definition at line 45 of file GLTF_Cache.h.
bool GLTF_NAMESPACE::GLTF_Cache::EvictLoader | ( | const UT_StringHolder & | path | ) |
|
static |
const UT_SharedPtr<const GLTF_Loader> GLTF_NAMESPACE::GLTF_Cache::LoadLoader | ( | const UT_StringHolder & | path | ) |
Creates a new loader with the given filepath, calls Load() and returns a pointer. If we were unable to load, then the loader is evicted and null is returned