Ubuntu Manpages

SDL_GetNumVideoDrivers

Get the number of video drivers compiled into SDL.

#include <SDL3/SDL_video.h>
int SDL_GetNumVideoDrivers(void);

Returns the number of built in video drivers.

This function should only be called on the main thread.

This function is available since SDL 3.2.0.

SDL_GetVideoDriver(3)