SDL_HINT_RPI_VIDEO_LAYER(3)

✨ SDL_HINT_RPI_VIDEO_LAYER ✨

okay bestie, so this is the SDL3 hint page β€” yes it lives in the SDL3 FUNCTIONS manual, and yes we're about to make Dispmanx layers make sense πŸ’…


πŸŽ€ NAME πŸŽ€

SDL_HINT_RPI_VIDEO_LAYER β€” a variable that controls which Dispmanx layer you use on a Raspberry PI. that's it, that's the whole job πŸ“


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

#define SDL_HINT_RPI_VIDEO_LAYER "SDL_RPI_VIDEO_LAYER"

πŸ’– DESCRIPTION πŸ’–

so this one is also known as Z-order, if you've ever heard that term floating around and been like "huh" β€” same thing, bestie πŸ¦‹

the variable can take a negative or positive value. your call, no judgment here.

the default is 10000 ⭐

lowkey important: this hint should be set before SDL is initialized. set it late and it's giving ✨too late✨ 😭

🌈 AVAILABILITY 🌈

this hint has been available since SDL 3.2.0 πŸ‘‘


and that's the whole vibe check, no cap 🫢 this page came to you from the fine folks behind Simple Directmedia Layer, sitting pretty at version SDL 3.4.18, filed under SDL_HINT_RPI_VIDEO_LAYER(3). go forth and layer responsibly πŸ’œπŸŽ€

πŸ“¦ where this page comes from