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();
}