SDL_SetBooleanProperty(3)

πŸ’– SDL_SetBooleanProperty πŸ’–

okay bestie, this page is from the SDL3 FUNCTIONS manual, and it's literally about setting a boolean property in a group of properties. it's giving tiny function, huge impact. no cap. πŸ’…


✨ NAME ✨

SDL_SetBooleanProperty β€” set a boolean property in a group of properties.

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_properties.h>

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

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • props β€” the properties to modify. like, the group chat you're editing.
  • name β€” the name of the property to modify. the @ of the property, fr fr.
  • value β€” the new value of the property. the boolean glow-up.

🌸 RETURN VALUE 🌸

Returns true on success or false on failure; call SDL_GetError() for more information. so if it's not slaying, go read the error, bestie. 😭

πŸ”₯ THREAD SAFETY πŸ”₯

It is safe to call this function from any thread. so you can take it anywhere, periodt. 🫢

πŸ‘‘ AVAILABILITY πŸ‘‘

This function is available since SDL 3.2.0. iconic behavior. ✨

🌈 SEE ALSO 🌈


xoxo, Simple Directmedia Layer πŸ’– SDL 3.4.18 πŸ’– SDL_SetBooleanProperty(3). stay boolean, stay blessed. πŸ’…βœ¨

πŸ“¦ where this page comes from