BsMeshImportOptionsRTTI.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 "BsRTTIType.h"
  6. #include "BsMeshImportOptions.h"
  7. namespace BansheeEngine
  8. {
  9. /** @cond RTTI */
  10. /** @addtogroup RTTI-Impl-Core
  11. * @{
  12. */
  13. class BS_CORE_EXPORT MeshImportOptionsRTTI : public RTTIType <MeshImportOptions, ImportOptions, MeshImportOptionsRTTI>
  14. {
  15. private:
  16. BS_BEGIN_RTTI_MEMBERS
  17. BS_RTTI_MEMBER_PLAIN(mCPUReadable, 0)
  18. BS_RTTI_MEMBER_PLAIN(mImportNormals, 1)
  19. BS_RTTI_MEMBER_PLAIN(mImportTangents, 2)
  20. BS_RTTI_MEMBER_PLAIN(mImportBlendShapes, 3)
  21. BS_RTTI_MEMBER_PLAIN(mImportSkin, 4)
  22. BS_RTTI_MEMBER_PLAIN(mImportAnimation, 5)
  23. BS_RTTI_MEMBER_PLAIN(mImportScale, 6)
  24. BS_RTTI_MEMBER_PLAIN(mCollisionMeshType, 7)
  25. BS_END_RTTI_MEMBERS
  26. public:
  27. MeshImportOptionsRTTI()
  28. :mInitMembers(this)
  29. { }
  30. const String& getRTTIName() override
  31. {
  32. static String name = "MeshImportOptions";
  33. return name;
  34. }
  35. UINT32 getRTTIId() override
  36. {
  37. return TID_MeshImportOptions;
  38. }
  39. SPtr<IReflectable> newRTTIObject() override
  40. {
  41. return bs_shared_ptr_new<MeshImportOptions>();
  42. }
  43. };
  44. /** @} */
  45. /** @endcond */
  46. }