1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef ASSETS_H #define ASSETS_H #include <stddef.h> // size_t #include <stdint.h> // uint8_t typedef enum { ASSET_SPRITES_PNG, ASSET_ROBOTO_TTF, ASSET_LAST, } asset_id_t; typedef struct { const uint8_t * const buf; size_t len; } asset_t; const asset_t *asset_get(const asset_id_t); #endif /* ASSETS_H */