NcEngine
NcAsset.h File Reference

Go to the source code of this file.

Classes

class  nc::asset::NcAsset
 Asset module interface. More...
 

Typedefs

using nc::asset::AssetMap = std::unordered_map< asset::AssetType, std::vector< std::string > >
 A map of AssetType to a list of asset paths of that type.
 

Functions

auto nc::asset::BuildAssetModule (const config::AssetSettings &assetSettings, const config::MemorySettings &memorySettings, AssetMap defaults) -> std::unique_ptr< NcAsset >
 Build an NcAsset instance. More...
 

Detailed Description

Function Documentation

◆ BuildAssetModule()

auto nc::asset::BuildAssetModule ( const config::AssetSettings assetSettings,
const config::MemorySettings memorySettings,
AssetMap  defaults 
) -> std::unique_ptr< NcAsset >

Build an NcAsset instance.

Parameters
assetSettingsSettings controlling asset search locations.
memorySettingsSettings controlling memory limits.
defaultsA collection of assets to be available by default.
Returns
An NcAsset instance.