SDL_GetCurrentVideoDriver(3)
β¨ SDL_GetCurrentVideoDriver(3) β¨
okay bestie, so this is a page from the SDL3 FUNCTIONS manual, and it's literally the shortest lil glow-up you've ever seen π it tells you how to ask SDL "hey girl, which video driver are we running rn?" β and that's it, that's the whole vibe. no cap.
π NAME π
SDL_GetCurrentVideoDriver β get the name of the currently initialized video driver. that's it. that's her whole job π«Ά
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
const char * SDL_GetCurrentVideoDriver(void);
no args, no drama, just vibes π
π¦ DESCRIPTION π¦
so the names of drivers are all simple, low-ASCII identifiers β think "cocoa", "x11", or "windows". cute, right?
these names never have Unicode characters in them, bestie. not even one lil emoji β¨ and highkey important: they are not meant to be proper names. so don't go putting them on a birth certificate or whatever, they're just internal identifier strings, iykyk π
π RETURN VALUE π
returns the name of the current video driver... or NULL if no driver has been initialized π (yes, that's the sad path, and yes, you should check for it, fr fr).
π₯ THREAD SAFETY π₯
this function should only be called on the main thread. periodt. main character energy only, no side quests on other threads π
β AVAILABILITY β
this function is available since SDL 3.2.0 β so if you're on anything older, sorry babe, she doesn't exist yet π
π SEE ALSO π
go read those too, they're the sibling icons π
kisses, bestie π this was written for the Simple Directmedia Layer crew, SDL 3.4.18 era, and yeah that's the version and the source, mwah πβ¨
π¦ 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