mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Added intersection test to example-29-debugdraw.
This commit is contained in:
@@ -2157,9 +2157,14 @@ void ddDraw(const Aabb& _aabb)
|
||||
s_dd.draw(_aabb);
|
||||
}
|
||||
|
||||
void ddDraw(const Cylinder& _cylinder, bool _capsule)
|
||||
void ddDraw(const Cylinder& _cylinder)
|
||||
{
|
||||
s_dd.draw(_cylinder, _capsule);
|
||||
s_dd.draw(_cylinder, false);
|
||||
}
|
||||
|
||||
void ddDraw(const Capsule& _capsule)
|
||||
{
|
||||
s_dd.draw( *( (const Cylinder*)&_capsule), true);
|
||||
}
|
||||
|
||||
void ddDraw(const Disk& _disk)
|
||||
@@ -2177,6 +2182,11 @@ void ddDraw(const Sphere& _sphere)
|
||||
s_dd.draw(_sphere);
|
||||
}
|
||||
|
||||
void ddDraw(const Cone& _cone)
|
||||
{
|
||||
ddDrawCone(_cone.m_pos, _cone.m_end, _cone.m_radius);
|
||||
}
|
||||
|
||||
void ddDrawFrustum(const void* _viewProj)
|
||||
{
|
||||
s_dd.drawFrustum(_viewProj);
|
||||
|
||||
Reference in New Issue
Block a user