+stb_image, rm i think unnecessary part of quit

This commit is contained in:
cat 2025-05-25 03:29:04 +10:00
parent 8ec5f46e61
commit 380f715903
4 changed files with 7995 additions and 13 deletions

View file

@ -1,24 +1,14 @@
#define SDL_MAIN_USE_CALLBACKS
#define STB_IMAGE_IMPLEMENTATION
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
#include "stb_image.h"
#include "dat.h"
void
SDL_AppQuit(void *as, SDL_AppResult res)
{
State *st;
st = as;
if (st) {
SDL_Log("destroy renderer...");
SDL_DestroyRenderer(st->ren);
SDL_Log("destroy window...");
SDL_DestroyWindow(st->win);
SDL_Log("free state...");
SDL_free(st);
}
SDL_Log("bye!");
return;
}