working asset manager !
All checks were successful
Linux arm64 / Build (push) Successful in 1m58s

This commit is contained in:
2025-05-27 21:29:56 +02:00
parent 3d1feb6295
commit d50714ef8c
8 changed files with 175 additions and 19 deletions

30
src/Utils/AssetManager.h Normal file
View File

@@ -0,0 +1,30 @@
#pragma once
#include <cstdint>
#include <string>
struct Asset {
const unsigned char* data;
std::size_t size;
};
enum class AssetName {
data_fonts_pressstart_prstartk_ttf,
data_fonts_pressstart_prstart_ttf,
data_images_keybinds_Rotate0_png,
data_images_keybinds_Moveright_png,
data_images_keybinds_RotateCW_png,
data_images_keybinds_Pause_png,
data_images_keybinds_Hold_png,
data_images_keybinds_Softdrop_png,
data_images_keybinds_RotateCCW_png,
data_images_keybinds_Moveleft_png,
data_images_keybinds_Rotate180_png,
data_images_keybinds_Retry_png,
data_images_keybinds_Harddrop_png,
};
const Asset& getResource(AssetName fileName);
const Asset& getResource(const std::string& fileName);