SDL_GetNumVideoDrivers(3)
π SDL_GetNumVideoDrivers(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where we answer the question nobody asked but everybody needed: how many video drivers did SDL actually get compiled with? π
β¨ NAME β¨
SDL_GetNumVideoDrivers β get the number of video drivers compiled into SDL, fr fr π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
int SDL_GetNumVideoDrivers(void);
π¦ DESCRIPTION π¦
so like. SDL has video drivers. not one, not two, a whole stack of them, all baked in at compile time. this function is the vibe check that tells you how many of them exist π
π RETURN VALUE π
returns the number of built in video drivers. that's it. that's the whole tea. ββ¨
π THREAD SAFETY π
bestie. listen. this function should only be called on the main thread. no side quests, no background thread shenanigans, main thread only. periodt. π
π«Ά AVAILABILITY π«Ά
this function is available since SDL 3.2.0. if you're on anything older, sorry babe, it's not giving π
π SEE ALSO π
SDL_GetVideoDriver(3)β the sister function, she's iconic too π
Simple Directmedia Layer π¦ SDL 3.4.18 π and yeah that's the whole page, mwah π go call SDL_GetVideoDriver(3) next, iykyk β¨ππ
π¦ 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