DavidKimYongRak / box2d

Automatically exported from code.google.com/p/box2d
0 stars 0 forks source link

Test.cpp has portion of code that does not allow it to be ported to other platform #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
    if (m_bombSpawning)
    {
        glPointSize(4.0f);
        glColor3f(0.0f, 0.0f, 1.0f);
        glBegin(GL_POINTS);
        glColor3f(0.0f, 0.0f, 1.0f);
        glVertex2f(m_bombSpawnPoint.x, m_bombSpawnPoint.y);
        glEnd();

        glColor3f(0.8f, 0.8f, 0.8f);
        glBegin(GL_LINES);
        glVertex2f(m_mouseWorld.x, m_mouseWorld.y);
        glVertex2f(m_bombSpawnPoint.x, m_bombSpawnPoint.y);
        glEnd();
    }

This should be replaced with m_debugDraw.Draw***() calls.

I'm "porting" Box2D for AirPlay SDK usage (surely with testbed tests) 
(www.airplaysdk.com)

Thanks,
Alexey

Original issue reported on code.google.com by alexey.p...@gmail.com on 13 Sep 2010 at 7:09

GoogleCodeExporter commented 9 years ago
Removed OpenGL code from Test.cpp.

Original comment by erinca...@gmail.com on 27 Mar 2011 at 7:03