DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches

#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 ()

Member Function Documentation

◆ Instance()

AssetPackReader & Deki::AssetPackReader::Instance ( )
static

◆ LoadPackIndex()

bool Deki::AssetPackReader::LoadPackIndex ( const char * path)

Reads pack_index.bin from path.

◆ IsInPack()

bool Deki::AssetPackReader::IsInPack ( const std::string & guid) const

◆ GetPackPath()

std::string Deki::AssetPackReader::GetPackPath ( const std::string & guid) const

The pack file holding guid, or "" when it is in no pack.

◆ LoadPack()

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.

◆ GetAsset()

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.

◆ UnloadAll()

void Deki::AssetPackReader::UnloadAll ( )

Frees every loaded pack.

◆ HasPackIndex()

bool Deki::AssetPackReader::HasPackIndex ( ) const
inline

The documentation for this class was generated from the following file: