From 2973df584978d9aae6f164ce0204179c8a28b3ae Mon Sep 17 00:00:00 2001 From: 2lag <96544487+2lag@users.noreply.github.com> Date: Sat, 8 Aug 2026 17:33:36 +0200 Subject: console, textbox changes, some other shit --- src/game/assets.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/game/assets.cpp') diff --git a/src/game/assets.cpp b/src/game/assets.cpp index 62663a9..6ee7aff 100644 --- a/src/game/assets.cpp +++ b/src/game/assets.cpp @@ -9,6 +9,18 @@ void assets_init( GAME_DATA *game ) { game->assets.test = gl_texture_from_file( game->gl, "uvtest.png" ); game->assets.fonts_init = 0; + + for( I32 idx = 0; idx < SDL_NUM_SYSTEM_CURSORS; ++idx ) + game->assets.cursors[idx] = SDL_CreateSystemCursor( (SDL_SystemCursor)idx ); +} + +void assets_destroy( GAME_DATA* game ) { + for( I32 idx = 0; idx < SDL_NUM_SYSTEM_CURSORS; ++idx ) { + if( !game->assets.cursors[idx] ) + continue; + SDL_FreeCursor( game->assets.cursors[idx] ); + game->assets.cursors[idx] = 0; + } } void assets_create_fonts( struct GAME_DATA *game ) { -- cgit v1.2.3