SceneComponent.cpp 580 B

1234567891011121314151617181920212223
  1. // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #include <AnKi/Scene/Components/SceneComponent.h>
  6. #include <AnKi/Scene/SceneGraph.h>
  7. namespace anki {
  8. SceneComponent::SceneComponent([[maybe_unused]] SceneNode* node, SceneComponentType type)
  9. : m_uuid(SceneGraph::getSingleton().getNewUuid())
  10. , m_type(U8(type))
  11. {
  12. }
  13. U32 SceneComponent::regenerateUuid()
  14. {
  15. m_uuid = SceneGraph::getSingleton().getNewUuid();
  16. return m_uuid;
  17. }
  18. } // namespace anki