SDL_ONAPPLICATIONWILLTERMINATE(3)
π¦ SDL_OnApplicationWillTerminate π¦
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we're talking about SDL_OnApplicationWillTerminate π
β¨ NAME β¨
SDL_OnApplicationWillTerminate β the lil hook that lets iOS apps with their own external event handling report onApplicationWillTerminate π«Ά
π SYNOPSIS π
#include <SDL3/SDL_system.h>
void SDL_OnApplicationWillTerminate(void);
π DESCRIPTION π
so here's the vibe: this function lets iOS apps that handle their own events hook into SDL so they can generate SDL events. it maps directly to an iOS-specific event, but β and this is the iconic part β since it doesn't do anything iOS-specific internally, it's available on all platforms, just in case it might be useful for some specific paradigm π
most apps do not need to use this directly, fr fr. SDL's internal event code will handle all of this for windows created by SDL_CreateWindow β¨ like, it's already doing it for you, no cap.
π§ THREAD SAFETY π§
it is safe to call this function from any thread. yes bestie, ANY. go off π
β AVAILABILITY β
this function is available since SDL 3.2.0 π
and that's the whole thing! no extra lore, no hidden flags, it's giving "short and sweet" π
Simple Directmedia Layer Β· SDL 3.4.18 β mwah, ty for reading, ily, now go close your app gracefully ππ¦β¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms