z_mirror/sdl-osu

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

Caleb HeuerSwitch to four-space indents and inline braces836a89c

trunk
798 B25 linesraw
1#pragma once
2#include <stddef.h>
3
4struct Osu_BeatmapStore;
5struct Osu_Game;
6struct Osu_Graphics;
7
8union SDL_Event;
9
10struct Osu_BeatmapSelector {
11    struct Osu_Beatmap** beatmaps;
12    size_t beatmapsLen;
13
14    struct Osu_Beatmap* selectedBeatmap;
15    char searchText[1024];
16
17    struct TTF_Text** beatmapTexts; // len is beatmapsLen
18    double beatmapYOffset;
19};
20
21struct Osu_BeatmapSelector* Osu_CreateBeatmapSelector(struct Osu_Game* game, struct Osu_BeatmapStore* beatmapStore);
22void Osu_DestroyBeatmapSelector(struct Osu_Game* game, struct Osu_BeatmapSelector* selector);
23
24void Osu_HandleBeatmapSelectorEvent(struct Osu_Game* game, struct Osu_BeatmapSelector* selector, union SDL_Event* event);
25void Osu_RenderBeatmapSelector(struct Osu_BeatmapSelector* selector, struct Osu_Graphics* graphics);