Skip to content
Mandarancio edited this page Jan 15, 2012 · 2 revisions

How to use

Include the QB2Draw in your project

Create an object QB2Draw: QB2Draw * drawer=new QB2Draw(geometry); //Geometry is the geometry of your window

Assign at your b2world world->setDebugDraw(drawer);

In your paintEvent QPainter p(this); drawer->setPainter(&p); world->drawDebugData(); .... p.end();

Clone this wiki locally