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

Renderer driver information functions. More...

Functions

unsigned int count ()
 Query the amount of available rendering drivers. More...
 
Info info (const unsigned int i)
 Query the driver info for the ith rendering driver. More...
 

Detailed Description

Renderer driver information functions.

Function Documentation

◆ count()

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

Query the amount of available rendering drivers.

Exceptions
rolmodl::sdlexceptionSDL reported an error code.
See also
https://wiki.libsdl.org/SDL_GetNumRenderDrivers

Definition at line 15 of file Ren.cpp.

References rolmodl::detail::throwOnErr().

Referenced by info().

◆ info()

Info rolmodl::ren::driver::info ( const unsigned int  i)

Query the driver info for the ith rendering driver.

Exceptions
std::out_of_rangeDriver index is out of range.
See also
https://wiki.libsdl.org/SDL_GetRenderDriverInfo

Definition at line 21 of file Ren.cpp.

References count(), rolmodl::ren::Info::name, rolmodl::detail::throwOnErr(), and rolmodl::ren::Flags::unsafeFromRaw().