SDL_VideoDriverName(3)
π SDL_VideoDriverName(3) π
okay bestie, welcome to the SDL API Reference β¨ this one lives in the SDL manual and it's genuinely so useful, no cap π«Ά
πΈ NAME πΈ
SDL_VideoDriverName β obtain the name of the video driver π
β¨ SYNOPSIS β¨
#include "SDL.h"
char *SDL_VideoDriverName(char *namebuf, int maxlen);
π DESCRIPTION π
so here's the tea, bestie π β the buffer that namebuf is pointing at gets filled up with the name of the initialised video driver, and it goes up to a maximum of maxlen characters.
β οΈ and yes, that maxlen count includes the NULL terminator β she's counting the whole squad, not just the visible letters π don't forget her or it's giving buffer overflow energy
and the driver name itself? it's a simple one word identifier, like "x11" or "windib" β short, sweet, iconic, one word only π
π RETURN VALUE π
- if video has not been initialised with
SDL_Init, you getNULLback π (the audacity honestly) - otherwise you get a pointer to
namebufπ₯³ slay
π SEE ALSO π
SDL_InitSDL_InitSubSystem
go read those too, bestie, they're the whole vibe iykyk π
that's the whole page, periodt π this one comes to you from the SDL manual, dated Tue 11 Sep 2001, 23:01 β yes she's an elder but she still ate and left no crumbs, fr fr π¦β¨ bye bestie, go initialise your video subsystem ππΈ
π¦ where this page comes from
- debian bookworm: libsdl1.2-dev 1.2.15+dfsg2-8 Β· LGPL-2.1-or-later
- nixos 26.05: SDL_sixel 0-unstable-2016-02-06
- nixpkgs unstable: SDL_sixel 0-unstable-2016-02-06
- ubuntu jammy: libsdl1.2-dev 1.2.15+dfsg2-6 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms