5#include "DSCEngine/types/hash_map.hpp"
11 static constexpr int asset_hashtable_size = 8;
12 static constexpr int record_hashtable_size = 4;
18 default_hash<const AssetData*, asset_hashtable_size>, asset_hashtable_size>
24 int default_alloc_mode = 0;
32 void set_default_allocation_mode(
int allocation_mode);
35 void unload(
const AssetData* asset,
int palette_index);
37 static constexpr int ALLOC_MODE_DEFAULT = 0;
38 static constexpr int ALLOC_MODE_STANDARD_PALETTE = 1<<0;
39 static constexpr int ALLOC_MODE_EXTENDED_PALETTES = 1<<1;
41 static constexpr int STANDARD_PALETTE = -1;
42 static constexpr int EXTENDED_PALETTE(
int p) {
return p; }
Definition: asset_data.hpp:8
Generic hash map.
Definition: hash_map.hpp:18
Definition: palette_loader.hpp:10
Automatic palette manager.
Definition: palette_manager.hpp:16
Generic dynamic vector.
Definition: vector.hpp:23
PaletteManager class definitions.
Struct that contains information following an asset allocation attempt via PaletteManager::try_load()...
Definition: palette_manager.hpp:93
Generic dynamic vector definition.