![]() |
FastEngine 0.9.5
A multiplayer oriented 2D engine made with Vulkan.
|
Everything related to time control. More...
Classes | |
| class | fge::Clock |
| A clock that can be used to measure time. More... | |
| class | fge::Timer |
| A timer that can be used with the timer manager to handle time. More... | |
| FGE_API void | fge::timer::Init () |
| Init the timer manager. | |
| FGE_API bool | fge::timer::IsInit () |
| Check if the timer manager is initialized. | |
| FGE_API void | fge::timer::Uninit () |
| Un-init the timer manager. | |
| FGE_API void | fge::timer::Notify () |
| Notify the timer manager thread generally used after adding/updating a timer. | |
| FGE_API fge::timer::TimerShared | fge::timer::Create (fge::timer::TimerShared timer) |
| Add a new timer to be handled by the thread. | |
| FGE_API bool | fge::timer::Destroy (fge::timer::TimerShared const &timer) |
| Destroy a timer with the given pointer. | |
| FGE_API bool | fge::timer::Remove (std::string const &timerName) |
| Destroy a timer with the given name. | |
| FGE_API void | fge::timer::RemoveAll () |
| Destroy all timers. | |
| FGE_API bool | fge::timer::Check (fge::timer::TimerShared const &timer) |
| Check if the given timer pointer exist in the manager. | |
| FGE_API bool | fge::timer::Check (std::string const &timerName) |
| Check if the given timer name exist in the manager. | |
| FGE_API std::size_t | fge::timer::GetTimerSize () |
| Get the total number of timers. | |
| FGE_API fge::timer::TimerShared | fge::timer::Get (std::string const &timerName) |
| Get the timer pointer with the given name. | |
Everything related to time control.
| FGE_API bool fge::timer::Check | ( | fge::timer::TimerShared const & | timer | ) |
Check if the given timer pointer exist in the manager.
| timer | The timer to check |
| FGE_API bool fge::timer::Check | ( | std::string const & | timerName | ) |
Check if the given timer name exist in the manager.
| timerName | The timer name to check |
| FGE_API fge::timer::TimerShared fge::timer::Create | ( | fge::timer::TimerShared | timer | ) |
Add a new timer to be handled by the thread.
| timer | The timer to add |
| FGE_API bool fge::timer::Destroy | ( | fge::timer::TimerShared const & | timer | ) |
Destroy a timer with the given pointer.
| timer | The timer to destroy |
| FGE_API fge::timer::TimerShared fge::timer::Get | ( | std::string const & | timerName | ) |
Get the timer pointer with the given name.
| timerName | The name of the timer to get |
| FGE_API std::size_t fge::timer::GetTimerSize | ( | ) |
Get the total number of timers.
| FGE_API void fge::timer::Init | ( | ) |
Init the timer manager.
This will create the timer thread.
| FGE_API bool fge::timer::IsInit | ( | ) |
Check if the timer manager is initialized.
| FGE_API void fge::timer::Notify | ( | ) |
Notify the timer manager thread generally used after adding/updating a timer.
| FGE_API bool fge::timer::Remove | ( | std::string const & | timerName | ) |
Destroy a timer with the given name.
| timerName | The timer name to destroy |
| FGE_API void fge::timer::RemoveAll | ( | ) |
Destroy all timers.
| FGE_API void fge::timer::Uninit | ( | ) |
Un-init the timer manager.