Functions.h 637 B

12345678910111213141516171819202122232425262728
  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/collision/Plane.h>
  7. #include <anki/collision/Frustum.h>
  8. namespace anki
  9. {
  10. /// @addtogroup collision
  11. /// @{
  12. /// Extract the clip planes using an MVP matrix
  13. ///
  14. /// @param[in] mvp The MVP matrix.
  15. /// @param[out] planes Pointers to the planes. Elements can be nullptr
  16. ///
  17. /// @note plane_count * 8 muls, plane_count sqrt
  18. extern void extractClipPlanes(
  19. const Mat4& mvp, Plane* planes[(U)Frustum::PlaneType::COUNT]);
  20. /// @}
  21. } // end namespace anki