SDL_ClearProperty(3)
π SDL_ClearProperty π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_ClearProperty β she's a lil function with one job and she does it flawlessly, no cap β¨
πΈ NAME πΈ
SDL_ClearProperty β yeet a property out of a group of properties. that's it. that's the whole gig. she clears it. gone. poof. π«Ά
β¨ SYNOPSIS β¨
#include <SDL3/SDL_properties.h>
bool SDL_ClearProperty(SDL_PropertiesID props, const char *name);
like. look at her. two arguments, one bool, zero drama π
π FUNCTION PARAMETERS π
propsβ the properties you're modifying, i.e. the group of properties getting the lil makeover. it's anSDL_PropertiesID, so it's the whole squad, not just one entry π§nameβ the name of the property you want to clear. yes, that one. the one you're done with. she's getting removed bestie π
β RETURN VALUE β
returns true when it worked and false when it did not β and if it's giving failure energy, you gotta call SDL_GetError() for more info. that's your receipts, your detective work, your "wait what happened" hotline π
π¦ THREAD SAFETY π¦
good news queen: it is safe to call this function from any thread. no locking gymnastics required, no "wait am I allowed to be here" panic. call her from wherever you are. iconic behaviour honestly π
π AVAILABILITY π
this function has been available since SDL 3.2.0. so if you're on anything older, she's simply not there yet and that's the vibe check π
lowkey reminder:falsemeans something went wrong and you should be checkingSDL_GetError()like the responsible little programmer you are. don't just ignore her. she's trying to tell you something π
that's the whole page, bestie β nothing else to clear here except maybe your browser tabs πΈ
signing off from the Simple Directmedia Layer manual, SDL 3.4.18 edition, brought to you by the SDL_ClearProperty(3) page itself πβ¨π bye pookie π«Ά
π¦ 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