|
rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
|
System information functions and enums. More...
Namespaces | |
| clipboard | |
| Clipboard functions. | |
| cpu | |
| CPU information functions. | |
| display | |
| driver | |
| Video driver functions. | |
| pwr | |
| Power state functions and enums. | |
| screensaver | |
| Screensaver functions. | |
Classes | |
| struct | Display |
| Display information snapshot. More... | |
| struct | DisplayMode |
| Display mode parameter plain old struct. More... | |
Enumerations | |
| enum | Id { AIX, android, BSDI, dreamcast, emscripten, freeBSD, haiku, HPUX, irix, linux, MiNT, macOSClassic, macOSX, NaCl, netBSD, openBSD, OS2, OSF, QNXNeutrino, RISCOS, solaris, windows, winRT, tvOS, iOS, PSP, unknown } |
| OS type enum. More... | |
Functions | |
| const char * | name () noexcept |
| Human-readable OS name. Use rolmodl::sys::id() for OS identification purposes instead of this method. More... | |
| Id | id () noexcept |
| Get id of the OS on which the code is running. May differ from whatever operating system the code was compiled on. | |
| unsigned int | ram () noexcept |
| Get the amount of system RAM in MB. More... | |
| unsigned int | logicalCores () noexcept |
| Get the number of available logical CPU cores. More... | |
System information functions and enums.
|
strong |
OS type enum.
Values taken from SDL.c.
|
noexcept |
Human-readable OS name. Use rolmodl::sys::id() for OS identification purposes instead of this method.
Definition at line 9 of file Base.cpp.
Referenced by id().
|
noexcept |
Get the amount of system RAM in MB.
|
noexcept |
Get the number of available logical CPU cores.
1.8.16