Sortix
Sortix Download Manual Development Source Code News Blog More
current nightly

Sortix cross-nightly manual

This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.

SDL_VideoDriverName(3) SDL API Reference SDL_VideoDriverName(3)

NAME

SDL_VideoDriverName - Obtain the name of the video driver

SYNOPSIS

#include "SDL.h"
 
char *SDL_VideoDriverName(char *namebuf, int maxlen);

DESCRIPTION

The buffer pointed to by namebuf is filled up to a maximum of maxlen characters (include the NULL terminator) with the name of the initialised video driver. The driver name is a simple one word identifier like "x11" or "windib".

RETURN VALUE

Returns NULL if video has not been initialised with SDL_Init or a pointer to namebuf otherwise.

SEE ALSO

SDL_Init SDL_InitSubSystem
Tue 11 Sep 2001, 23:01 SDL
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org