Metro Box2d debug draw

Hi,

Does anyone know how to get the box2d debug draw working on the Windows 8 Metro Cocos2dx?

I found this code commented in the box2d test screen which looks unfinished.

m_debugDraw = new GLESDebugDraw( PTM_RATIO );
world~~>SetDebugDraw;
uint flags = 0;
flags = b2DebugDraw::e_shapeBit;
flags
= b2DebugDraw::e_jointBit;
flags = b2DebugDraw::e_aabbBit;
flags
= b2DebugDraw::e_pairBit;
flags += b2DebugDraw::e_centerOfMassBit;
m_debugDraw~~>SetFlags(flags);

Any help would be much appreciated, it’s proving to be really difficult to create box2d physics without debug.

You will need to rewrite it, since Windows 8 uses DirectX and not OpenGL.