Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Nov 21, 2017
1 parent 3004ef1 commit 2c7a1e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions examples/common/debugdraw/debugdraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2237,19 +2237,9 @@ void ddDrawCone(const void* _from, const void* _to, float _radius)
s_dd.drawCone(_from, _to, _radius);
}

void ddDrawCylinder(const void* _from, const void* _to, float _radius, bool _capsule)
void ddDrawCylinder(const void* _from, const void* _to, float _radius)
{
if (_capsule)
{
s_dd.push();
s_dd.setLod(0);
s_dd.drawCylinder(_from, _to, _radius, true);
s_dd.pop();
}
else
{
s_dd.drawCylinder(_from, _to, _radius, false);
}
s_dd.drawCylinder(_from, _to, _radius, false);
}

void ddDrawCapsule(const void* _from, const void* _to, float _radius)
Expand Down
2 changes: 1 addition & 1 deletion examples/common/debugdraw/debugdraw.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void ddDrawQuad(bgfx::TextureHandle _handle, const float* _normal, const float*
void ddDrawCone(const void* _from, const void* _to, float _radius);

///
void ddDrawCylinder(const void* _from, const void* _to, float _radius, bool _capsule = false);
void ddDrawCylinder(const void* _from, const void* _to, float _radius);

///
void ddDrawCapsule(const void* _from, const void* _to, float _radius);
Expand Down

0 comments on commit 2c7a1e5

Please sign in to comment.