|
| std::string | gamp::asset_dir () noexcept |
| |
| int | gamp::expected_fps () noexcept |
| | Returns expected fps, either gpu_forced_fps() if set, otherwise monitor_fps().
|
| |
| jau::fraction_timespec | gamp::expected_framedur () noexcept |
| | Returns the expected frame duration in [s], i.e.
|
| |
| jau::fraction_timespec | gamp::getElapsedMonotonicTime () noexcept |
| | Returns the elapsed monotonic time since init_gfx_subsystem, synchronized with the gfx subsystem timer.
|
| |
| float | gamp::gpu_avg_fps () noexcept |
| | Returns the measured gpu fps each 5s, starting with monitor_fps()
|
| |
| const jau::fraction_timespec & | gamp::gpu_avg_framedur () noexcept |
| | Returns the measured gpu frame duration in [s] each 5s, starting with 1/gpu_avg_fps()
|
| |
| int | gamp::gpu_forced_fps () noexcept |
| | Returns optional forced frames per seconds or -1 if unset, set via set_gpu_forced_fps().
|
| |
| size_t | gamp::handle_events () noexcept |
| | GFX Toolkit: Handle windowing and keyboard events.
|
| |
| bool | gamp::init_gfx_subsystem (const char *exe_path) |
| | GFX Toolkit: Initialize the subsystem once.
|
| |
| bool | gamp::is_gfx_subsystem_initialized () noexcept |
| |
| std::string | gamp::lookup_and_register_asset_dir (const char *exe_path, const char *asset_file="fonts/freefont/FreeSansBold.ttf", const char *asset_install_subdir="gamp") noexcept |
| |
| bool | gamp::mainloop_default () noexcept |
| | Performs the whole tasks for all created gamp::wt::Window instances.
|
| |
| void | gamp::mainloop_void () noexcept |
| | Calls mainloop_default(), but exits application if returning false.
|
| |
| int | gamp::monitor_fps () noexcept |
| | Monitor frames per seconds.
|
| |
| std::string | gamp::resolve_asset (const std::string &asset_file, bool lookup_direct=false) noexcept |
| |
| void | gamp::set_gpu_forced_fps (int fps) noexcept |
| | Optional forced frames per seconds, pass to swap_gpu_buffer() by default.
|
| |
| void | gamp::shutdown () noexcept |
| |
| void | gamp::swap_gpu_buffer (int fps) noexcept |
| | GFX Toolkit: Swap GPU back to front framebuffer of all windows using given fps, maintaining vertical monitor synchronization if possible.
|
| |