Common.h 585 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright (C) 2009-2016, Panagiotis Christopoulos Charitos.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <anki/Math.h>
  7. #include <anki/util/Allocator.h>
  8. namespace anki
  9. {
  10. // Forward
  11. class Widget;
  12. class Canvas;
  13. class UiImage;
  14. /// @addtogroup ui
  15. /// @{
  16. using UiAllocator = GenericMemoryPoolAllocator<U8>;
  17. /// Color.
  18. using Color = Vec4;
  19. /// Rectangle
  20. class Rect
  21. {
  22. public:
  23. UVec2 m_min;
  24. UVec2 m_max;
  25. };
  26. /// Used in widget classes.
  27. #define ANKI_WIDGET friend class Canvas;
  28. /// @}
  29. } // end namespace anki