rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
Functions
rolmodl::sys::driver Namespace Reference

Video driver functions. More...

Functions

unsigned int count ()
 Query the amount of available video drivers. More...
 
const char * name (const unsigned int i)
 Get the name of the ith video driver. More...
 
std::optional< const char * > current () noexcept
 Query the current video driver name. More...
 

Detailed Description

Video driver functions.

Function Documentation

◆ count()

unsigned int rolmodl::sys::driver::count ( )

Query the amount of available video drivers.

See also
https://wiki.libsdl.org/SDL_GetNumVideoDrivers

Definition at line 189 of file Base.cpp.

Referenced by name().

◆ name()

const char * rolmodl::sys::driver::name ( const unsigned int  i)

Get the name of the ith video driver.

Note
The video drivers are presented in the order in which they are normally checked during initialization.
See also
https://wiki.libsdl.org/SDL_GetVideoDriver

Definition at line 196 of file Base.cpp.

References count().

◆ current()

std::optional< const char * > rolmodl::sys::driver::current ( )
noexcept

Query the current video driver name.

See also
https://wiki.libsdl.org/SDL_GetCurrentVideoDriver

Definition at line 201 of file Base.cpp.