RegisterTypes.h 532 B

123456789101112131415161718
  1. // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
  2. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  3. // SPDX-License-Identifier: MIT
  4. #pragma once
  5. JPH_NAMESPACE_BEGIN
  6. /// Internal helper function
  7. JPH_EXPORT extern void RegisterTypesInternal(uint64 inVersionID);
  8. /// Register all physics types with the factory
  9. inline void RegisterTypes() { RegisterTypesInternal(JPH_VERSION_ID); }
  10. /// Unregisters all types with the factory and cleans up the default material
  11. JPH_EXPORT extern void UnregisterTypes();
  12. JPH_NAMESPACE_END