BsScriptMorphShapes.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 "BsAnimation.h"
  7. namespace BansheeEngine
  8. {
  9. class ScriptAnimationClip;
  10. /** @addtogroup ScriptInteropEngine
  11. * @{
  12. */
  13. /** Interop class between C++ & CLR for MorphShapes. */
  14. class BS_SCR_BE_EXPORT ScriptMorphShapes : public ScriptObject <ScriptMorphShapes>
  15. {
  16. public:
  17. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "MorphShapes")
  18. /** Returns the native wrapped object. */
  19. SPtr<MorphShapes> getInternal() const { return mMorphShapes; }
  20. /** Creates a managed object from the native morph shapes object. */
  21. static MonoObject* create(const SPtr<MorphShapes>& morphShapes);
  22. private:
  23. ScriptMorphShapes(MonoObject* managedInstance, const SPtr<MorphShapes>& morphShapes);
  24. SPtr<MorphShapes> mMorphShapes;
  25. /************************************************************************/
  26. /* CLR HOOKS */
  27. /************************************************************************/
  28. static MonoArray* internal_GetShapes(ScriptMorphShapes* thisPtr);
  29. };
  30. /** @} */
  31. }