+stb_image, rm i think unnecessary part of quit
This commit is contained in:
parent
8ec5f46e61
commit
380f715903
4 changed files with 7995 additions and 13 deletions
14
slutpet.c
14
slutpet.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue