diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-11-13 19:05:25 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-11-13 19:05:25 +0100 |
commit | 0b2ca3c323c7f73d031e7014ba0a17dcf0b59751 (patch) | |
tree | 8a3ebeee7e2aab9ba064c62fce0cd33def6f2d18 /src/crepe/facade/SDLContext.h | |
parent | 1d4b3a44c9ce1e69f4f0e3909998225f8af3fea2 (diff) | |
parent | f2509e89c02894ebd3ad992324eb300103621d26 (diff) |
merge with master
Diffstat (limited to 'src/crepe/facade/SDLContext.h')
-rw-r--r-- | src/crepe/facade/SDLContext.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h index e358c21..536dec5 100644 --- a/src/crepe/facade/SDLContext.h +++ b/src/crepe/facade/SDLContext.h @@ -58,12 +58,23 @@ private: private: //! Will only use get_ticks friend class AnimatorSystem; - + //! Will only use delay + friend class LoopTimer; /** * \brief Gets the current SDL ticks since the program started. * \return Current ticks in milliseconds as a constant uint64_t. */ uint64_t get_ticks() const; + /** + * \brief Pauses the execution for a specified duration. + * + * This function uses SDL's delay function to halt the program execution + * for a given number of milliseconds, allowing for frame rate control + * or other timing-related functionality. + * + * \param ms Duration of the delay in milliseconds. + */ + void delay(int ms) const; private: /** |