|
cpp-sdl2
C++ header-only SDL2 wrapper
|
Go to the source code of this file.
Namespaces | |
| sdl | |
| Define to deactivate exception support. | |
| sdl::system | |
| Get information about the system (os, cpu, ram...) | |
| sdl::power | |
| Power related functions. | |
| sdl::clipboard | |
| Clipboard management functions. | |
Enumerations | |
| enum | sdl::power::state { sdl::power::state::unknown = SDL_POWERSTATE_UNKNOWN, sdl::power::state::on_battery = SDL_POWERSTATE_ON_BATTERY, sdl::power::state::no_battery = SDL_POWERSTATE_NO_BATTERY, sdl::power::state::charging = SDL_POWERSTATE_CHARGING, sdl::power::state::charged = SDL_POWERSTATE_CHARGED } |
| Power states. More... | |
Functions | |
| std::string | sdl::version () |
| Get version as string. More... | |
| void | sdl::show_message_box (uint32_t flags, std::string const &title, std::string const &message) |
| Show a message box, usefull to display error messages. More... | |
| void | sdl::show_message_box (uint32_t flags, std::string const &title, std::string const &message, sdl::Window const &parent) |
Show a message box, as a modal child of parent More... | |
| bool | sdl::system::is_tablet () |
| bool | sdl::system::has_AVX512F () |
| std::string | sdl::system::platform () |
| Get used platform as a string. More... | |
| int | sdl::system::cpu_cacheline_size () |
| Get the size of a cacheline. More... | |
| int | sdl::system::cpu_count () |
| Get the numbers of CPU in the system. More... | |
| int | sdl::system::system_ram () |
| Get the amount of ram in the system `. More... | |
| bool | sdl::system::has_3DNow () |
| Returns true if system has AMD 3DNow! support. More... | |
| bool | sdl::system::has_AVX () |
| Return true if CPU has AVX instruction set support. More... | |
| bool | sdl::system::has_AVX2 () |
| Return true if CPU has AVX2 instruction set support. More... | |
| bool | sdl::system::has_AltiVec () |
| Return true if cpu has Apple/IBM/Motorola AltiVec SIMD support. More... | |
| bool | sdl::system::has_MMX () |
| Return true if cpu has Intel MMX support. More... | |
| bool | sdl::system::has_RDTSC () |
| Return true if current cpu has a TSC register. More... | |
| bool | sdl::system::has_SSE () |
| Return true if cpu supports 1st gen SSE. More... | |
| bool | sdl::system::has_SSE2 () |
| Return true if cpu supports SSE2. More... | |
| bool | sdl::system::has_SSE3 () |
| Return true if cpu supports SSE3. More... | |
| bool | sdl::system::has_SSE41 () |
| Return true if cpu supports SSE41. More... | |
| bool | sdl::system::has_SSE42 () |
| Return true if cpu supports SSE42. More... | |
| state | sdl::power::get_state () |
| Get current powerstate. See sdl::power::state enumeration for values. More... | |
| int | sdl::power::get_battery_remaining_time () |
| Get battery remaining time. More... | |
| int | sdl::power::get_battery_remaining_charge () |
| Get the current battery charge. More... | |
| bool | sdl::clipboard::has_text () |
| Returns true if clipboard has text. More... | |
| std::string | sdl::clipboard::text () |
| Returns the content of the clipboard. More... | |
| int | sdl::clipboard::get_text (std::string const &text) |
| Set the clipboard to a specific value. More... | |