BsScriptBoneWeight.h 743 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "BsScriptEnginePrerequisites.h"
  3. #include "BsScriptObject.h"
  4. #include "BsMeshData.h"
  5. namespace BansheeEngine
  6. {
  7. /**
  8. * @brief Interop class between C++ & CLR for BoneWeight.
  9. */
  10. class BS_SCR_BE_EXPORT ScriptBoneWeight : public ScriptObject <ScriptBoneWeight>
  11. {
  12. public:
  13. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "BoneWeight")
  14. /**
  15. * @brief Unboxes a boxed managed BoneWeight struct and returns
  16. * the native version of the structure.
  17. */
  18. static BoneWeight unbox(MonoObject* obj);
  19. /**
  20. * @brief Boxes a native BoneWeight struct and returns
  21. * a managed object containing it.
  22. */
  23. static MonoObject* box(const BoneWeight& value);
  24. private:
  25. ScriptBoneWeight(MonoObject* instance);
  26. };
  27. }