Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DrawDebugData() needs a Clear parameter #3

Open
GoogleCodeExporter opened this issue Jun 9, 2015 · 0 comments
Open

DrawDebugData() needs a Clear parameter #3

GoogleCodeExporter opened this issue Jun 9, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 22 Apr 2012 at 1:59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant