z_mirror/sdl-osu
git clone https://git.raiguard.me/z_mirror/sdl-osu
836a89c
trunk
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 { 11struct Osu_Beatmap ** beatmaps ; 12size_t beatmapsLen ; 13 14struct Osu_Beatmap * selectedBeatmap ; 15char searchText [1024 ]; 16 17struct TTF_Text ** beatmapTexts ;// len is beatmapsLen 18double 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 );