|
Gamp v0.0.8
Gamp: Graphics, Audio, Multimedia and Processing
|
Graphics, Audio, Multimedia and Processing Framework. More...
Classes | |
| class | gamp::Attachable |
| An attachable object. More... | |
| class | gamp::GampEnv |
| Singleton runtime environment properties. More... | |
| class | gamp::GampException |
Typedefs | |
| typedef std::shared_ptr< Attachable > | gamp::AttachableSRef |
| typedef uintptr_t | gamp::handle_t |
| A native handle type, big enough to store a pointer. | |
| using | gamp::StringAttachables = jau::StringHashMapWrap<AttachableSRef, std::nullptr_t, nullptr> |
| using | gamp::StringViewAttachables = jau::StringViewHashMapWrap<AttachableSRef, std::nullptr_t, nullptr> |
Functions | |
| std::string | gamp::asset_dir () noexcept |
| template<typename T, typename U> | |
| U | gamp::castOrThrow (T has) |
| template<typename T, typename U> | |
| bool | gamp::checkOverflow (T has) |
| 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. | |
| template<typename T, typename U> | |
| void | gamp::throwOnOverflow (T has) |
Variables | |
| const jau::util::VersionNumberString | gamp::VERSION |
| const char * | gamp::VERSION_API |
| const char * | gamp::VERSION_SHORT |
Graphics, Audio, Multimedia and Processing Framework.
| typedef uintptr_t gamp::handle_t |
A native handle type, big enough to store a pointer.
Definition at line 52 of file GampTypes.hpp.
| typedef std::shared_ptr<Attachable> gamp::AttachableSRef |
Definition at line 88 of file GampTypes.hpp.
| using gamp::StringAttachables = jau::StringHashMapWrap<AttachableSRef, std::nullptr_t, nullptr> |
Definition at line 90 of file GampTypes.hpp.
| using gamp::StringViewAttachables = jau::StringViewHashMapWrap<AttachableSRef, std::nullptr_t, nullptr> |
Definition at line 91 of file GampTypes.hpp.
|
noexcept |
|
noexcept |
|
noexcept |
Returns the elapsed monotonic time since init_gfx_subsystem, synchronized with the gfx subsystem timer.
Definition at line 142 of file gamp_sdl2.cpp.
|
noexcept |
Monitor frames per seconds.
Definition at line 82 of file gamp_sdl2.cpp.
|
noexcept |
Returns optional forced frames per seconds or -1 if unset, set via set_gpu_forced_fps().
Passed to swap_gpu_buffer() by default.
Definition at line 84 of file gamp_sdl2.cpp.
|
noexcept |
Optional forced frames per seconds, pass to swap_gpu_buffer() by default.
Definition at line 86 of file gamp_sdl2.cpp.
|
inlinenoexcept |
Returns expected fps, either gpu_forced_fps() if set, otherwise monitor_fps().
Definition at line 59 of file Gamp.hpp.
|
inlinenoexcept |
|
noexcept |
| bool gamp::init_gfx_subsystem | ( | const char * | exe_path | ) |
GFX Toolkit: Initialize the subsystem once.
Definition at line 150 of file gamp_sdl2.cpp.
|
noexcept |
GFX Toolkit: Swap GPU back to front framebuffer of all windows using given fps, maintaining vertical monitor synchronization if possible.
fps <= 0 implies automatic fps.
Should not be called by user, instead use mainloop_default().
| fps | use gpu_forced_fps() |
Definition at line 352 of file gamp_sdl2.cpp.
|
noexcept |
Returns the measured gpu fps each 5s, starting with monitor_fps()
Definition at line 356 of file gamp_sdl2.cpp.
|
noexcept |
Returns the measured gpu frame duration in [s] each 5s, starting with 1/gpu_avg_fps()
Definition at line 360 of file gamp_sdl2.cpp.
|
noexcept |
Performs the whole tasks for all created gamp::wt::Window instances.
Definition at line 687 of file gamp_sdl2.cpp.
|
noexcept |
Calls mainloop_default(), but exits application if returning false.
Definition at line 708 of file gamp_sdl2.cpp.
|
noexcept |
Definition at line 719 of file gamp_sdl2.cpp.
|
noexcept |
GFX Toolkit: Handle windowing and keyboard events.
Should be called until function returns false to process all buffered events.
Definition at line 550 of file gamp_sdl2.cpp.
|
inline |
Definition at line 65 of file GampTypes.hpp.
|
inline |
|
inline |
|
extern |
|
extern |
|
extern |