Infinity Engine v0.6.20
C++ API Documentation
Loading...
Searching...
No Matches
Assets.hpp
1#pragma once
2
3#include <Infinity/api.h>
4#include <Infinity/Assets/AssetLoadInfo.hpp>
5#include <Infinity/Assets/Asset.hpp>
6
7#include <string>
8#include <string_view>
9
10namespace Infinity::Assets
11{
30 INFINITY_API_PUBLIC Asset load(const AssetLoadInfo& loadInfo);
31
51 INFINITY_API_PUBLIC Asset load(const std::string& loader, const AssetLoadInfo& loadInfo);
52
73 INFINITY_API_PUBLIC Asset load(const Infinity::Types::TypeID& type, const std::string& path);
74
95 INFINITY_API_PUBLIC Asset load(const std::string& loader, const Infinity::Types::TypeID& type, const std::string& path);
96}
Type-erased container for loaded asset data.
Definition Asset.hpp:40
Definition Asset.hpp:11
INFINITY_API_PUBLIC Asset load(const AssetLoadInfo &loadInfo)
Loads an asset using the configured loader chain.
Encapsulates the information required to load an asset in the Infinity engine.
Definition AssetLoadInfo.hpp:23
Runtime type identifier for the Infinity type system.
Definition TypeID.hpp:71