BsScriptBoneWeight.h 1.0 KB

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 "BsMeshData.h"
  7. namespace BansheeEngine
  8. {
  9. /** @addtogroup ScriptInteropEngine
  10. * @{
  11. */
  12. /** Interop class between C++ & CLR for BoneWeight. */
  13. class BS_SCR_BE_EXPORT ScriptBoneWeight : public ScriptObject <ScriptBoneWeight>
  14. {
  15. public:
  16. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "BoneWeight")
  17. /** Unboxes a boxed managed BoneWeight struct and returns the native version of the structure. */
  18. static BoneWeight unbox(MonoObject* obj);
  19. /** Boxes a native BoneWeight struct and returns a managed object containing it. */
  20. static MonoObject* box(const BoneWeight& value);
  21. private:
  22. ScriptBoneWeight(MonoObject* instance);
  23. };
  24. /** @} */
  25. }