Open
Description
The DrawDebugData command needs a boolean parameter for clearing the screen.
Currently, any call to DrawDebugData will wipe the screen clear of anything
that was drawn in mojo for example. By giving the option not to clear, the
debugdata can be drawn over top of your graphics with alpha for precise
debugging. Further - the new parameter can have a default of false so that
other user's current code works the same with no modification. I modify the
module to do this myself, but thought I would report it here as it would likely
be useful for others as well.
Code shange is minimal:
b2world.monkey @1498
Method DrawDebugData : Void (doCLS=false)
if (m_debugDraw = Null)
Return
End
if (doCLS)
m_debugDraw.Clear()
End
...
...
Original issue reported on code.google.com by jondecke...@gmail.com
on 22 Apr 2012 at 1:59