SDL_VideoDriverName(3)

SDL_VideoDriverName3

Obtain the name of the video driver

Usage

#include "SDL.h"

char *SDL_VideoDriverName(char *namebuf, int maxlen);

Overview

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.

Releases

11 releases since Debian 3.0 (Woody); the text changed 1 time.

  1. 3.0–5.0
  2. 6.0–12

From libsdl1.2-dev 1.2.15+dfsg2-8 in Debian 12 (Bookworm). Parsed by carta from the page's man source.