sdlGetNumVideoDrivers function

int sdlGetNumVideoDrivers()

Get the number of video drivers compiled into SDL.

\returns the number of built in video drivers.

\threadsafety This function should only be called on the main thread.

\since This function is available since SDL 3.1.3.

\sa SDL_GetVideoDriver

extern SDL_DECLSPEC int SDLCALL SDL_GetNumVideoDrivers(void)

Implementation

int sdlGetNumVideoDrivers() {
  final sdlGetNumVideoDriversLookupFunction =
      libSdl3.lookupFunction<Int32 Function(), int Function()>(
          'SDL_GetNumVideoDrivers');
  return sdlGetNumVideoDriversLookupFunction();
}