diff options
author | 2017-02-05 13:56:35 +0100 | |
---|---|---|
committer | 2017-02-05 13:56:35 +0100 | |
commit | 1607745432f50099711d7aee355111111e66ff51 (patch) | |
tree | c4eaec8008f6e0283ca652cdffb55a34eca9b9bb /3rdparty/bgfx/examples/common/bounds.cpp | |
parent | 193e8c8a89a4be5c63909cdbbcca4d9d6f8fee02 (diff) |
Update BGFX and BX (nw)
Diffstat (limited to '3rdparty/bgfx/examples/common/bounds.cpp')
-rw-r--r-- | 3rdparty/bgfx/examples/common/bounds.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/3rdparty/bgfx/examples/common/bounds.cpp b/3rdparty/bgfx/examples/common/bounds.cpp index 96a775024d2..6afd5755d0c 100644 --- a/3rdparty/bgfx/examples/common/bounds.cpp +++ b/3rdparty/bgfx/examples/common/bounds.cpp @@ -182,6 +182,12 @@ void aabbExpand(Aabb& _aabb, float _factor) _aabb.m_max[2] += _factor; } +void aabbExpand(Aabb& _aabb, const float* _pos) +{ + bx::vec3Min(_aabb.m_min, _aabb.m_min, _pos); + bx::vec3Max(_aabb.m_max, _aabb.m_max, _pos); +} + uint32_t aabbOverlapTest(const Aabb& _aabb0, const Aabb& _aabb1) { const uint32_t ltMinX = _aabb0.m_max[0] < _aabb1.m_min[0]; |