private void renderBody(GL2 gl,SandboxBody body){
  RenderUtilities.pushTransform(gl);
  RenderUtilities.applyTransform(gl,body.getTransform());
  if (body.getFixtureCount() > 1) {
    if (Preferences.isBodyStenciled()) {
      body.stencil(gl);
    }
 else {
      body.render(gl);
    }
  }
 else {
    body.render(gl);
  }
  if (Preferences.isBodyNormalEnabled()) {
    body.renderNormals(gl);
  }
  if (Preferences.isBodyRotationDiscEnabled()) {
    body.renderRotationDisc(gl);
  }
  if (Preferences.isBodyCenterEnabled()) {
    body.renderCenter(gl);
  }
  RenderUtilities.popTransform(gl);
  if (Preferences.isBodyVelocityEnabled()) {
    body.renderVelocity(gl);
  }
}

private void renderBody ( GL2 gl , SandboxBody body ) { RenderUtilities . pushTransform ( gl ) ; RenderUtilities . applyTransform ( gl , body . getTransform ( ) ) ; if ( body . getFixtureCount ( ) > 1 ) { if ( Preferences . isBodyStenciled ( ) ) { body . stencil ( gl ) ; } else { body . render ( gl ) ; } } else { body . render ( gl ) ; } if ( Preferences . isBodyNormalEnabled ( ) ) { body . renderNormals ( gl ) ; } if ( Preferences . isBodyRotationDiscEnabled ( ) ) { body . renderRotationDisc ( gl ) ; } if ( Preferences . isBodyCenterEnabled ( ) ) { body . renderCenter ( gl ) ; } RenderUtilities . popTransform ( gl ) ; if ( Preferences . isBodyVelocityEnabled ( ) ) { body . renderVelocity ( gl ) ; } }
renders a body and related state normally .
