z_mirror/sdl-osu

git clone https://git.raiguard.me/z_mirror/sdl-osu

Caleb HeuerSwitch to four-space indents and inline braces836a89c

trunk
781 B32 linesraw
1#pragma once
2#include <SDL3/SDL_stdinc.h>
3
4struct Osu_Beatmap {
5    char* filepath;
6    char* dirname;
7
8    // General
9    char* audioFilename;
10    Sint32 audioLeadIn;
11    Sint32 previewTime;
12    // Metadata
13    char* title;
14    char* titleUnicode;
15    char* artist;
16    char* artistUnicode;
17    char* creator;
18    char* version;
19    char* source;
20    char* tags; // TODO: Actual array
21    char* beatmapID;
22    char* beatmapSetID;
23    // Events
24    char* 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);