Experiment in graphics programming, C++, OpenGL, simulation techniques.
{#} | Time | Hash | Subject | Author | # | (+) | (-) | GPG? |
---|---|---|---|---|---|---|---|---|
7 | 03 Sep 2023 16:01 | 5f524c5 | OpenGL render abstractions | Josh Stockin | 1 | 25 | 0 | G |
1 | #ifndef ITIMER_HPP_ |
2 | #define ITIMER_HPP_ |
3 | |
4 | |
5 | #include <cstdint> |
6 | #include "IUpdateable.hpp" |
7 | |
8 | |
9 | class ITimer : public IUpdateable |
10 | { |
11 | public: |
12 | // IUpdateable |
13 | virtual bool Update() = 0; |
14 | |
15 | // ITimer |
16 | virtual void Reset() = 0; |
17 | virtual void SetTimeout(uint64_t timeout_ms) = 0; |
18 | virtual void Start() = 0; |
19 | virtual void Stop() = 0; |
20 | virtual bool IsExpired() = 0; |
21 | virtual uint64_t *GetGlobalTimePointer() = 0; |
22 | }; |
23 | |
24 | |
25 | #endif /* ITIMER_HPP_ */ |
26 |