Common.h 849 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <AnKi/Util/Allocator.h>
  7. #include <AnKi/Util/String.h>
  8. #include <AnKi/Scene/Forward.h>
  9. namespace anki {
  10. /// @addtogroup scene
  11. /// @{
  12. #define ANKI_SCENE_LOGI(...) ANKI_LOG("SCEN", NORMAL, __VA_ARGS__)
  13. #define ANKI_SCENE_LOGE(...) ANKI_LOG("SCEN", ERROR, __VA_ARGS__)
  14. #define ANKI_SCENE_LOGW(...) ANKI_LOG("SCEN", WARNING, __VA_ARGS__)
  15. #define ANKI_SCENE_LOGF(...) ANKI_LOG("SCEN", FATAL, __VA_ARGS__)
  16. /// The type of the scene's allocator
  17. template<typename T>
  18. using SceneAllocator = HeapAllocator<T>;
  19. /// The type of the scene's frame allocator
  20. template<typename T>
  21. using SceneFrameAllocator = StackAllocator<T>;
  22. /// @}
  23. } // end namespace anki