CmMeshST.h 504 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "CmPrerequisites.h"
  3. #include "CmRTTIType.h"
  4. #include "CmMesh.h"
  5. namespace CamelotEngine
  6. {
  7. class MeshST : public RTTIType<Mesh, Resource, MeshST>
  8. {
  9. public:
  10. MeshST()
  11. {
  12. }
  13. virtual std::shared_ptr<IReflectable> newRTTIObject()
  14. {
  15. return std::shared_ptr<Mesh>(new Mesh());
  16. }
  17. virtual const String& getRTTIName()
  18. {
  19. static String name = "Mesh";
  20. throw name;
  21. }
  22. virtual UINT32 getRTTIId()
  23. {
  24. return TID_Mesh;
  25. }
  26. };
  27. }