template<typename T>
esp::assets::Asset struct

Wrapper for all valid asset types.

Constructors, destructors, conversion operators

Asset(AssetInfo& info, T& asset)
Create Asset wrapper given AssetInfo and created asset.

Public functions

auto info() -> const AssetInfo&
Return AssetInfo for this Asset.
auto get() -> T&
Return reference to contained Asset.

Protected variables

AssetInfo info_
The AssetInfo for this asset.
T& asset_
the asset