z_mirror/sdl-osu
git clone https://git.raiguard.me/z_mirror/sdl-osu
836a89c
trunk
1#pragma once 2#include "game.h" 3#include <SDL3/SDL_rect.h> 4 5struct Osu_Graphics { 6struct SDL_Window * window ; 7struct SDL_Renderer * renderer ; 8 9struct TTF_Font * font ; 10struct TTF_Font * debugFont ; 11struct TTF_TextEngine * textEngine ; 12 13struct TTF_Text * debugText ; 14 15struct SDL_Texture * selectedBeatmapWallpaper ; 16 17struct SDL_FRect screenRect ; 18 19Uint8 beatmapDimFactor ; 20 21// Static textures; will not change during runtime 22struct SDL_Texture * beatmapWedgeTexture ; 23struct SDL_Texture * cursorTexture ; 24struct SDL_Texture * menuBackgroundTexture ; 25struct SDL_Texture * songSelectTopTexture ; 26struct SDL_Texture * hitCircleTexture ; 27struct SDL_Texture * hitCircleOverlayTexture ; 28struct SDL_Texture * approachCircleTexture ; 29}; 30 31struct Osu_Graphics * Osu_CreateGraphics (const char * dataPath ); 32void Osu_DestroyGraphics (struct Osu_Graphics * graphics ); 33 34void Osu_PrepareRender (struct Osu_Graphics * graphics ); 35void Osu_RenderWallpaper (struct Osu_Graphics * graphics ); 36void Osu_RenderCursor (struct Osu_Graphics * graphics ); 37 38void Osu_SetWallpaper (struct Osu_Graphics * graphics ,const char * filePath );