cubos::engine::FontAtlasBridge class

Bridge which loads FontAtlas assets.

Base classes

class AssetBridge
Bridges are the objects responsible for loading and saving assets from/to disk. They form the bridge between the asset manager and the virtual file system.

Protected functions

auto load(Assets& assets, const AnyAsset& handle) -> bool override
Loads an asset.
auto save(const Assets& assets, const AnyAsset& handle) -> bool override
Saves an asset.

Function documentation

bool cubos::engine::FontAtlasBridge::load(Assets& assets, const AnyAsset& handle) override protected

Loads an asset.

Parameters
assets Manager to write into.
handle Handle of the asset being loaded.
Returns Whether the asset was successfully loaded.

The metadata of the given asset should already be present in the asset manager.

bool cubos::engine::FontAtlasBridge::save(const Assets& assets, const AnyAsset& handle) override protected

Saves an asset.

Parameters
assets Manager to read from.
handle Handle of the asset being saved.
Returns Whether the asset was successfully saved.

The asset should be loaded in the asset manager.