|
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
|
#include <deki/assets/AssetPackReader.h>
Public Member Functions | |
| bool | LoadPackIndex (const char *path) |
| Reads pack_index.bin from path. | |
| bool | IsInPack (const std::string &guid) const |
| std::string | GetPackPath (const std::string &guid) const |
| The pack file holding guid, or "" when it is in no pack. | |
| bool | LoadPack (const char *packPath) |
| Loads a pack file into memory and registers its assets. | |
| const LoadedPack::AssetInfo * | GetAsset (const std::string &guid) const |
| The asset guid in a loaded pack, or nullptr when not found or its pack is not loaded. | |
| void | UnloadAll () |
| Frees every loaded pack. | |
| bool | HasPackIndex () const |
Static Public Member Functions | |
| static AssetPackReader & | Instance () |
|
static |
| bool Deki::AssetPackReader::LoadPackIndex | ( | const char * | path | ) |
Reads pack_index.bin from path.
| bool Deki::AssetPackReader::IsInPack | ( | const std::string & | guid | ) | const |
| std::string Deki::AssetPackReader::GetPackPath | ( | const std::string & | guid | ) | const |
The pack file holding guid, or "" when it is in no pack.
| bool Deki::AssetPackReader::LoadPack | ( | const char * | packPath | ) |
Loads a pack file into memory and registers its assets.
True when the pack is loaded, including when it already was.
| const LoadedPack::AssetInfo * Deki::AssetPackReader::GetAsset | ( | const std::string & | guid | ) | const |
The asset guid in a loaded pack, or nullptr when not found or its pack is not loaded.
| void Deki::AssetPackReader::UnloadAll | ( | ) |
Frees every loaded pack.
|
inline |