BsScriptQuaternion.h 996 B

1234567891011121314151617181920212223242526272829303132
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsScriptEnginePrerequisites.h"
  5. #include "BsScriptObject.h"
  6. #include "Math/BsQuaternion.h"
  7. namespace bs
  8. {
  9. /** @addtogroup ScriptInteropEngine
  10. * @{
  11. */
  12. /** Interop class between C++ & CLR for Quaternion. */
  13. class BS_SCR_BE_EXPORT ScriptQuaternion : public ScriptObject <ScriptQuaternion>
  14. {
  15. public:
  16. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "Quaternion")
  17. /** Unboxes a boxed managed Quaternion struct and returns the native version of the structure. */
  18. static Quaternion unbox(MonoObject* obj);
  19. /** Boxes a native Quaternion struct and returns a managed object containing it. */
  20. static MonoObject* box(const Quaternion& value);
  21. private:
  22. ScriptQuaternion(MonoObject* instance);
  23. };
  24. /** @} */
  25. }