z_mirror/sdl-osu
git clone https://git.raiguard.me/z_mirror/sdl-osu
836a89c
trunk
1#pragma once 2#include <SDL3/SDL_stdinc.h> 3 4struct Osu_Beatmap { 5char * filepath ; 6char * dirname ; 7 8// General 9char * audioFilename ; 10Sint32 audioLeadIn ; 11Sint32 previewTime ; 12// Metadata 13char * title ; 14char * titleUnicode ; 15char * artist ; 16char * artistUnicode ; 17char * creator ; 18char * version ; 19char * source ; 20char * tags ;// TODO: Actual array 21char * beatmapID ; 22char * beatmapSetID ; 23// Events 24char * backgroundPath ;// TODO: Support all background events 25}; 26 27// Creates a beatmap from a filepath, or NULL on error. 28// The return value should freed using OSU_FreeBeatmap. 29struct Osu_Beatmap * Osu_LoadBeatmap (const char * filepath ); 30 31// Frees a previously allocated beatmap. 32void Osu_DestroyBeatmap (struct Osu_Beatmap * beatmap );