SDL_DestroyProperties(3)
β¨ SDL_DestroyProperties β¨
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, page SDL_DestroyProperties(3), and babes this one is short and sweet π
πΈ NAME πΈ
SDL_DestroyProperties β destroy a group of properties. that's it. that's the whole job. she's a closer, not a starter π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_properties.h>
void SDL_DestroyProperties(SDL_PropertiesID props);
π DESCRIPTION π
so basically: every single property gets deleted, and their cleanup functions will be called, if any. like, all of them. the whole group. gone. and if any of those properties had a cleanup function attached, bestie, that function runs β that's the whole vibe. it's giving "spring cleaning but for a property group" π§Ήβ¨
π FUNCTION PARAMETERS π
propsβ the properties to destroy. hand her the group and she'll handle it, no cap π«Ά
π₯ THREAD SAFETY π₯
ok this is the important one, do NOT skip it. you should not call this function while these properties are locked, or while other threads might be setting or getting values from these properties. that's a race condition waiting to happen and it is NOT the cute kind of chaos ππ
β AVAILABILITY β
this function has been available since SDL 3.2.0. she's been here, she's been slaying, periodt π
π SEE ALSO π
SDL_CreateProperties(3)β the one who makes the group in the first place, because you gotta build it before you can destroy it, iykyk π
and that's the tea π this page came to you courtesy of Simple Directmedia Layer, version SDL 3.4.18 β mwah, stay safe out there, and don't destroy properties you don't own π«Άβ¨
π¦ 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