2 #ifndef GRAMODS_CORE_UPDATEABLE
3 #define GRAMODS_CORE_UPDATEABLE
5 #include <gmCore/config.hh>
11 BEGIN_NAMESPACE_GMCORE;
22 typedef std::chrono::steady_clock clock;
38 static void updateAll(clock::time_point t = clock::now(),
39 std::optional<size_t> frame = std::nullopt);
44 virtual void update(clock::time_point t,
size_t frame) = 0;
The Updateable class defines an interface for objects that may be updated, for example each execution...
Definition: Updateable.hh:18
virtual void update(clock::time_point t, size_t frame)=0
Called by updateAll to make the object up-to-date.
Definition: Updateable.cpp:9