Gamp v0.0.7-36-g24b1eb6
Gamp: Graphics, Audio, Multimedia and Processing
|
Graphics, Audio, Multimedia and Processing Framework. More...
Classes | |
struct | gamp::Attachable |
An attachable object. More... | |
class | gamp::GampEnv |
Singleton runtime environment properties. More... | |
class | gamp::GampException |
class | gamp::StringHashMapWrap< Value_type, Novalue_type, no_value > |
Typedefs | |
typedef std::shared_ptr< Attachable > | gamp::AttachableRef |
typedef uintptr_t | gamp::handle_t |
A native handle type, big enough to store a pointer. | |
using | gamp::StringAttachables = StringHashMapWrap<AttachableRef, std::nullptr_t, nullptr> |
template<typename K, typename V> | |
using | gamp::StringlikeHashMap = std::unordered_map<K, V, jau::string_hash, std::equal_to<>> |
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 47 of file GampTypes.hpp.
typedef std::shared_ptr<Attachable> gamp::AttachableRef |
Definition at line 79 of file GampTypes.hpp.
using gamp::StringlikeHashMap = std::unordered_map<K, V, jau::string_hash, std::equal_to<>> |
Definition at line 82 of file GampTypes.hpp.
using gamp::StringAttachables = StringHashMapWrap<AttachableRef, std::nullptr_t, nullptr> |
Definition at line 147 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 357 of file gamp_sdl2.cpp.
|
noexcept |
Returns the measured gpu fps each 5s, starting with monitor_fps()
Definition at line 361 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 365 of file gamp_sdl2.cpp.
|
noexcept |
Performs the whole tasks for all created gamp::wt::Window instances.
Definition at line 692 of file gamp_sdl2.cpp.
|
noexcept |
Calls mainloop_default(), but exits application if returning false.
Definition at line 713 of file gamp_sdl2.cpp.
|
noexcept |
Definition at line 724 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 555 of file gamp_sdl2.cpp.
|
inline |
Definition at line 60 of file GampTypes.hpp.
|
inline |
|
inline |
|
extern |
|
extern |
|
extern |