Package org.jbox2d.callbacks

Examples of org.jbox2d.callbacks.DebugDraw.drawString()


    final DebugDraw debugDraw = model.getDebugDraw();
    m_textLine = 20;

    if (title != null) {
      debugDraw.drawString(camera.getTransform().getExtents().x, 15, title, Color3f.WHITE);
      m_textLine += TEXT_LINE_SPACE;
    }

    if (settings.pause) {
      if (settings.singleStep) {
View Full Code Here


        settings.singleStep = false;
      } else {
        timeStep = 0;
      }

      debugDraw.drawString(5, m_textLine, "****PAUSED****", Color3f.WHITE);
      m_textLine += TEXT_LINE_SPACE;
    }

    int flags = 0;
    flags += settings.getSetting(TestbedSettings.DrawShapes).enabled ? DebugDraw.e_shapeBit : 0;
View Full Code Here

      ++stepCount;
    }

    if (settings.getSetting(TestbedSettings.DrawStats).enabled) {
      // Vec2.watchCreations = true;
      debugDraw.drawString(5, m_textLine, "Engine Info", color4);
      m_textLine += TEXT_LINE_SPACE;
      debugDraw.drawString(5, m_textLine, "Framerate: " + model.getCalculatedFps(), Color3f.WHITE);
      m_textLine += TEXT_LINE_SPACE;
      debugDraw.drawString(
          5,
View Full Code Here

    if (settings.getSetting(TestbedSettings.DrawStats).enabled) {
      // Vec2.watchCreations = true;
      debugDraw.drawString(5, m_textLine, "Engine Info", color4);
      m_textLine += TEXT_LINE_SPACE;
      debugDraw.drawString(5, m_textLine, "Framerate: " + model.getCalculatedFps(), Color3f.WHITE);
      m_textLine += TEXT_LINE_SPACE;
      debugDraw.drawString(
          5,
          m_textLine,
          "bodies/contacts/joints/proxies = " + m_world.getBodyCount() + "/"
View Full Code Here

      // Vec2.watchCreations = true;
      debugDraw.drawString(5, m_textLine, "Engine Info", color4);
      m_textLine += TEXT_LINE_SPACE;
      debugDraw.drawString(5, m_textLine, "Framerate: " + model.getCalculatedFps(), Color3f.WHITE);
      m_textLine += TEXT_LINE_SPACE;
      debugDraw.drawString(
          5,
          m_textLine,
          "bodies/contacts/joints/proxies = " + m_world.getBodyCount() + "/"
              + m_world.getContactCount() + "/" + m_world.getJointCount() + "/"
              + m_world.getProxyCount(), Color3f.WHITE);
View Full Code Here

          m_textLine,
          "bodies/contacts/joints/proxies = " + m_world.getBodyCount() + "/"
              + m_world.getContactCount() + "/" + m_world.getJointCount() + "/"
              + m_world.getProxyCount(), Color3f.WHITE);
      m_textLine += TEXT_LINE_SPACE;
      debugDraw.drawString(5, m_textLine, "World mouse position: " + mouseWorld.toString(),
          Color3f.WHITE);
      m_textLine += TEXT_LINE_SPACE;


      statsList.clear();
View Full Code Here

      statsList.clear();
      Profile p = getWorld().getProfile();
      p.toDebugStrings(statsList);

      for (String s : statsList) {
        debugDraw.drawString(5, m_textLine, s, Color3f.WHITE);
        m_textLine += TEXT_LINE_SPACE;
      }
      m_textLine += TEXT_SECTION_SPACE;
    }
View Full Code Here

      }
      m_textLine += TEXT_SECTION_SPACE;
    }

    if (settings.getSetting(TestbedSettings.DrawHelp).enabled) {
      debugDraw.drawString(5, m_textLine, "Help", color4);
      m_textLine += TEXT_LINE_SPACE;
      List<String> help = model.getImplSpecificHelp();
      for (String string : help) {
        debugDraw.drawString(5, m_textLine, string, Color3f.WHITE);
        m_textLine += TEXT_LINE_SPACE;
View Full Code Here

    if (settings.getSetting(TestbedSettings.DrawHelp).enabled) {
      debugDraw.drawString(5, m_textLine, "Help", color4);
      m_textLine += TEXT_LINE_SPACE;
      List<String> help = model.getImplSpecificHelp();
      for (String string : help) {
        debugDraw.drawString(5, m_textLine, string, Color3f.WHITE);
        m_textLine += TEXT_LINE_SPACE;
      }
      m_textLine += TEXT_SECTION_SPACE;
    }
View Full Code Here

      }
      m_textLine += TEXT_SECTION_SPACE;
    }

    if (!textList.isEmpty()) {
      debugDraw.drawString(5, m_textLine, "Test Info", color4);
      m_textLine += TEXT_LINE_SPACE;
      for (String s : textList) {
        debugDraw.drawString(5, m_textLine, s, Color3f.WHITE);
        m_textLine += TEXT_LINE_SPACE;
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.