BsAnimationClip.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsResource.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Animation
  9. * @{
  10. */
  11. class BS_CORE_EXPORT AnimationClip : public Resource
  12. {
  13. public:
  14. virtual ~AnimationClip() { }
  15. static HAnimationClip create();
  16. public: // ***** INTERNAL ******
  17. /** @name Internal
  18. * @{
  19. */
  20. /** Creates a new AnimationClip without initializing it. Use create() for normal use. */
  21. static SPtr<AnimationClip> _createPtr();
  22. /** @} */
  23. protected:
  24. AnimationClip();
  25. /************************************************************************/
  26. /* SERIALIZATION */
  27. /************************************************************************/
  28. public:
  29. friend class AnimationClipRTTI;
  30. static RTTITypeBase* getRTTIStatic();
  31. RTTITypeBase* getRTTI() const override;
  32. /**
  33. * Creates an AnimationClip with no data. You must populate its data manually followed by a call to initialize().
  34. *
  35. * @note For serialization use only.
  36. */
  37. static SPtr<AnimationClip> createEmpty();
  38. };
  39. /** @} */
  40. }