diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Interfaces/IPhysics2D.h |
Diffstat (limited to 'Runtime/Interfaces/IPhysics2D.h')
-rw-r--r-- | Runtime/Interfaces/IPhysics2D.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Runtime/Interfaces/IPhysics2D.h b/Runtime/Interfaces/IPhysics2D.h new file mode 100644 index 0000000..8cdc8f8 --- /dev/null +++ b/Runtime/Interfaces/IPhysics2D.h @@ -0,0 +1,29 @@ +#pragma once + +// -------------------------------------------------------------------------- + + +struct Physics2DStats; + + +// -------------------------------------------------------------------------- + + +class IPhysics2D +{ +public: + virtual void FixedUpdate () = 0; + virtual void DynamicUpdate () = 0; + virtual void ResetInterpolations () = 0; + +#if ENABLE_PROFILER + virtual void GetProfilerStats (Physics2DStats& stats) = 0; +#endif +}; + + +// -------------------------------------------------------------------------- + + +IPhysics2D* GetIPhysics2D (); +void SetIPhysics2D (IPhysics2D* manager); |