SDL_SetFloatProperty(3)

✨ SDL_SetFloatProperty ✨

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, page SDL_SetFloatProperty(3), and honestly? she's a little icon πŸ’…

🌸 NAME 🌸

SDL_SetFloatProperty β€” set a floating point property in a group of properties 🫢

✨ SYNOPSIS ✨

#include <SDL3/SDL_properties.h>

bool SDL_SetFloatProperty(SDL_PropertiesID props, const char *name, float value);

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • props β€” the properties to modify. this is the group chat you're about to send a message in πŸ“±
  • name β€” the name of the property to modify. i.e. which message you're editing, not just any message πŸ’–
  • value β€” the new value of the property. the actual content, and it's a float so bring your decimals, no cap 🌈

πŸ’€ RETURN VALUE πŸ’€

Returns true on success or false on failure. and if it fails? call SDL_GetError() for more information, because she will tell you what went wrong, periodt πŸ”₯

🧚 THREAD SAFETY 🧚

It is safe to call this function from any thread. yes literally any thread. go off, multithreaded main character πŸ‘‘

⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0. if you're on anything older, bestie, it's giving ✨nothing✨

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole vibe, fr fr. this page came to you from Simple Directmedia Layer, SDL 3.4.18, and it's been serving SDL_SetFloatProperty(3) energy the entire time πŸŽ€πŸ’– stay floaty, bestie, iykyk πŸ¦‹

πŸ“¦ where this page comes from