SDL_UpdateTrays(3)

πŸ’… SDL_UpdateTrays πŸ’…

okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, this one's short and sweet, let's go ✨


🌸 NAME 🌸

SDL_UpdateTrays β€” it updates the trays, periodt πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_tray.h>

void SDL_UpdateTrays(void);

that's it. that's the whole thing. no args, no return value, just vibes ✨


πŸ’– DESCRIPTION πŸ’–

so like, this is called automatically by the event loop, bestie. the event loop is doing it for you already, main character energy fr fr πŸ‘‘

you only need to call it yourself if you're using trays but you're not handling SDL events. that's the one and only situation. iykyk πŸ’…


🧚 THREAD SAFETY 🧚

🚨 okay this one matters: this function should only be called on the main thread. do not try it anywhere else, no cap. 😭

⭐ AVAILABILITY ⭐

this function is available since SDL 3.2.0 🫢 so if you're on anything older, it's giving nothing, sorry babe 🌸


and that's the whole page, diva πŸ’œ this cutie lives in the Simple Directmedia Layer manual, and the page itself is from SDL 3.4.18 β€” so if you're reading this version, you're on the good stuff ⭐ go update your trays, ily, bye πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from