assets.h (351B)
1 #ifndef PH_ENGINE_ASSETS_H 2 #define PH_ENGINE_ASSETS_H 3 4 /* Caller-owned asset descriptions; loading belongs to the backend. */ 5 typedef struct { 6 unsigned char r; 7 unsigned char g; 8 unsigned char b; 9 } PhColorKey; 10 11 typedef struct { 12 const char *path; 13 PhColorKey key; 14 } PhAssetDef; 15 16 typedef struct { 17 const char *path; 18 float gain; 19 } PhAudioDef; 20 21 #endif