| 12345678910111213141516171819202122232425262728 |
- // Copyright (C) 2009-2016, Panagiotis Christopoulos Charitos.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #pragma once
- #include <anki/collision/Plane.h>
- #include <anki/collision/Frustum.h>
- namespace anki
- {
- /// @addtogroup collision
- /// @{
- /// Extract the clip planes using an MVP matrix
- ///
- /// @param[in] mvp The MVP matrix.
- /// @param[out] planes Pointers to the planes. Elements can be nullptr
- ///
- /// @note plane_count * 8 muls, plane_count sqrt
- extern void extractClipPlanes(
- const Mat4& mvp, Plane* planes[(U)Frustum::PlaneType::COUNT]);
- /// @}
- } // end namespace anki
|