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