From 244a0a5b3fb1b03a4165e523f549cfecaca6187d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 21 Oct 2020 21:23:22 +0200 Subject: Add timer methods to C++ wrapper --- include/pugl/pugl.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/pugl/pugl.hpp') diff --git a/include/pugl/pugl.hpp b/include/pugl/pugl.hpp index d9e725a..d62ecca 100644 --- a/include/pugl/pugl.hpp +++ b/include/pugl/pugl.hpp @@ -570,6 +570,18 @@ public: return static_cast(puglRequestAttention(cobj())); } + /// @copydoc puglStartTimer + Status startTimer(const uintptr_t id, const double timeout) + { + return static_cast(puglStartTimer(cobj(), id, timeout)); + } + + /// @copydoc puglStopTimer + Status stopTimer(const uintptr_t id) + { + return static_cast(puglStopTimer(cobj(), id)); + } + /** @} @name Event Handlers -- cgit v1.2.1