1 #ifndef ENTT_RESOURCE_LOADER_HPP 2 #define ENTT_RESOURCE_LOADER_HPP 11 template<
typename Resource>
47 template<
typename Loader,
typename Resource>
52 template<
typename... Args>
53 std::shared_ptr<Resource>
get(Args&&... args)
const {
54 return static_cast<const Loader *
>(
this)->load(std::forward<Args>(args)...);
62 #endif // ENTT_RESOURCE_LOADER_HPP
Base class for resource loaders.
Simple cache for resources of a given type.