code cleanup + add font support

This commit is contained in:
2025-02-04 13:54:28 +01:00
parent be09d57a27
commit 6b17086936
6 changed files with 47 additions and 37 deletions

View File

@@ -15,9 +15,14 @@ enum {
ERROR_SDL_RENDERER = ERROR_SDL | 4,
ERROR_SDL_RENDERER_INIT = ERROR_SDL_RENDERER | ERROR_INIT,
// audio errors
ERROR_SDL_AUDIO = ERROR_SDL | 8,
ERROR_SDL_AUDIO_INIT = ERROR_SDL_AUDIO | ERROR_INIT,
// font errors
ERROR_SDL_FONT = ERROR_SDL | 16,
ERROR_SDL_FONT_INIT = ERROR_SDL_FONT | ERROR_INIT,
};
// call when a fatal error has occurred, the program will immediately terminate when called