diff options
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); |