UiManager.h 621 B

123456789101112131415161718192021222324252627282930313233
  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. #pragma once
  6. #include <AnKi/Ui/Common.h>
  7. namespace anki {
  8. /// @addtogroup ui
  9. /// @{
  10. /// UI manager.
  11. class UiManager : public MakeSingleton<UiManager>
  12. {
  13. template<typename>
  14. friend class MakeSingleton;
  15. public:
  16. Error init(AllocAlignedCallback allocCallback, void* allocCallbackData);
  17. Error newCanvas(U32 initialWidth, U32 initialHeight, UiCanvasPtr& canvas);
  18. private:
  19. UiManager();
  20. ~UiManager();
  21. };
  22. /// @}
  23. } // end namespace anki