SDL_SetNumberProperty(3)
β¨ SDL_SetNumberProperty β¨
okay bestie, we're in the SDL3 function family and this one is literally the moment you drop a whole integer into a property group π (SDL_SetNumberProperty, if we're being formal, which we are not)
πΈ NAME πΈ
SDL_SetNumberProperty β set an integer property in a group of properties. that's it, that's the whole job, and she does it flawlessly π
π SYNOPSIS π
#include <SDL3/SDL_properties.h>
bool SDL_SetNumberProperty(SDL_PropertiesID props, const char *name, Sint64 value);
look at her. short. clean. iconic. no notes. π«Ά
π¦ FUNCTION PARAMETERS π¦
propsβ the properties you're modifying, like the lil property group you're walking into and redecorating β¨nameβ the name of the property you want to modify. yes, the name, bestie, gotta know which one πvalueβ the new value of the property. the fresh number. the glow-up. it's aSint64, so she can hold a lot π
π RETURN VALUE π
returns true on success or false on failure π and if it's a failure you should call SDL_GetError() for more information β she will tell you what went wrong, fr fr.
π₯ THREAD SAFETY π₯
it is safe to call this function from any thread. no cap. any thread. go wild, she's built for it π
β AVAILABILITY β
this function is available since SDL 3.2.0. so if you're on anything older, bestie... no she's not there yet π
π SEE ALSO π
SDL_GetNumberProperty(3)β the other half of the duo, the reader to her writer, the getter to her setter π«
Simple Directmedia Layer made this one, and this gorgeous page is rockin' SDL 3.4.18 π so shoutout to the SDL girlies, stay slaying, mwah ππ
π¦ 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