Help! Need simple DebugDraw example for Windows

Well that's kinda why I was requesting that someone just whip up a quick and dirty helloWorld type example that works and send it my way. I think it would be easier to start with something that works than to debug my current build that doesn't work.

If you can get a simple example up and running in Windows.. I'm all ears. 😉
ajcrm125 wrote:
Basically what I am looking for is:
* Simple HelloWorld (nothing fancy) type example with just a simple shape
* Utilizes cocos2d-x and Box2D
* Builds and runs on Windows (I'm using VisualStudio 2012)

A quick search finds a large number of examples that fulfil your first two points. The last point is not really a Box2D issue and should be asked at the cocos2d-x forums, because you are more likely to find a solution there, and it's a more logical place for other people to search for the solution themselves in future. It's unlikely you will find anyone on this forum who will "whip up" something for you.
Yeah I tossed something out there when I posted this (http://www.cocos2d-x.org/forums/6/topics/46347). No hits yet...
I almost wonder if it's an OpenGL setting or something. Something I'm not setting properly to get the primitive shapes to be displayed?
Ahhh so it looks to be OpenGL related. It turns out I can only draw in black. Even if I set the color to say red... only black gets drawn. The reason it appeared debug draw wasn't working is because I was drawing black on black.

Is there something I need to do to get it to support color?

Just for kicks I tried drawing directly with some OpenGL primitives and still no luck.. only a black triangle is shown:

Code:
void HelloWorld::draw()
{
// // IMPORTANT: // This is only for debug purposes // It is recommend to disable it
 CCLayerColor::draw();
 ccGLEnableVertexAttribs(kCCVertexAttribFlag_Position);
 kmGLPushMatrix();


 //world->DrawDebugData();

 
   glLoadIdentity();                           // Reset The Current Modelview Matrix
   glColor4f(1.0, 1.0, 1.0, 1.0);
   
   glBegin(GL_TRIANGLES);                        // Drawing Using Triangles
      glVertex3f( 0.0f, 200.0f, 0.0f);               // Top
      glVertex3f(0.0f,0.0f, 0.0f);               // Bottom Left
      glVertex3f( 200.0f,0.0f, 0.0f);               // Bottom Right
   glEnd();                                 // Finished Drawing The Triangle

 kmGLPopMatrix();
}

Original thread: https://box2d.org/forum/viewtopic.php?t=9677