1 #ifndef ENTT_RESOURCE_LOADER_HPP 2 #define ENTT_RESOURCE_LOADER_HPP 44 template<
typename Loader,
typename Resource>
45 class resource_loader {
55 template<
typename... Args>
56 std::shared_ptr<Resource>
get(Args &&... args)
const {
57 return static_cast<const Loader *
>(
this)->load(std::forward<Args>(args)...);
65 #endif // ENTT_RESOURCE_LOADER_HPP Simple cache for resources of a given type.