Common.h 849 B

1234567891011121314151617181920212223242526272829303132
  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. {
  11. /// @addtogroup scene
  12. /// @{
  13. #define ANKI_SCENE_LOGI(...) ANKI_LOG("SCEN", NORMAL, __VA_ARGS__)
  14. #define ANKI_SCENE_LOGE(...) ANKI_LOG("SCEN", ERROR, __VA_ARGS__)
  15. #define ANKI_SCENE_LOGW(...) ANKI_LOG("SCEN", WARNING, __VA_ARGS__)
  16. #define ANKI_SCENE_LOGF(...) ANKI_LOG("SCEN", FATAL, __VA_ARGS__)
  17. /// The type of the scene's allocator
  18. template<typename T>
  19. using SceneAllocator = HeapAllocator<T>;
  20. /// The type of the scene's frame allocator
  21. template<typename T>
  22. using SceneFrameAllocator = StackAllocator<T>;
  23. /// @}
  24. } // end namespace anki