.. | .. |
---|
10 | 10 | |
---|
11 | 11 | boolean IsStatic() |
---|
12 | 12 | { |
---|
13 | | - return !(live && (CameraPane.isLIVE() || CameraPane.waslive)); |
---|
| 13 | + return !(live && (Globals.isLIVE() || CameraPane.waslive)); |
---|
14 | 14 | } |
---|
15 | 15 | |
---|
16 | 16 | void Revert() |
---|
.. | .. |
---|
543 | 543 | } |
---|
544 | 544 | |
---|
545 | 545 | // serial lost |
---|
546 | | - void DrawNode0(CameraPane display) |
---|
| 546 | + void DrawNode0(iCameraPane display) |
---|
547 | 547 | { |
---|
548 | 548 | super.DrawNode(display, null, false); |
---|
549 | 549 | } |
---|
550 | 550 | |
---|
551 | 551 | |
---|
552 | | - void DrawNode/*notused*/(CameraPane display, Object3D /*Composite*/ root, boolean selected) |
---|
| 552 | + void DrawNode/*notused*/(iCameraPane display, Object3D /*Composite*/ root, boolean selected) |
---|
553 | 553 | { |
---|
554 | 554 | // assert displaylist == -1; |
---|
555 | 555 | |
---|
.. | .. |
---|
565 | 565 | // } |
---|
566 | 566 | |
---|
567 | 567 | //new Exception().printStackTrace(); |
---|
568 | | - GL gl = display.GetGL(); // getGL(); |
---|
| 568 | + GL gl = display.GetGL0(); // getGL(); |
---|
569 | 569 | |
---|
570 | 570 | //gl.glDisable(GL.GL_LIGHTING); |
---|
571 | 571 | |
---|
572 | | - if (display.drawMode == display.SHADOW) |
---|
| 572 | + if (display.DrawMode() == display.SHADOW) |
---|
573 | 573 | { |
---|
574 | 574 | gl.glDisable(gl.GL_CULL_FACE); |
---|
575 | 575 | } |
---|
.. | .. |
---|
762 | 762 | gl.glEnd(); |
---|
763 | 763 | gl.glEnable(GL.GL_LIGHTING); |
---|
764 | 764 | /**/ |
---|
765 | | - if (display.CULLFACE) |
---|
| 765 | + if (display.BackFaceCullMode()) |
---|
766 | 766 | { |
---|
767 | 767 | gl.glEnable(gl.GL_CULL_FACE); |
---|
768 | 768 | } |
---|
.. | .. |
---|
775 | 775 | // displaylist = 0; // june 2013 -1; |
---|
776 | 776 | |
---|
777 | 777 | //System.out.println("DRAW " + display.drawMode); |
---|
778 | | - if (live && display.isLIVE() && display.drawMode == display.DEFAULT) |
---|
| 778 | + if (live && Globals.isLIVE() && display.DrawMode() == display.DEFAULT) |
---|
779 | 779 | { |
---|
780 | 780 | //System.out.println("UPDATE"); |
---|
781 | 781 | Phys.update(); |
---|
.. | .. |
---|
1208 | 1208 | } |
---|
1209 | 1209 | |
---|
1210 | 1210 | if (edges.size()%2 != 0) |
---|
| 1211 | + { |
---|
| 1212 | + new Exception().printStackTrace(); |
---|
1211 | 1213 | System.exit(0); |
---|
| 1214 | + } |
---|
1212 | 1215 | } |
---|
1213 | 1216 | |
---|
1214 | 1217 | // if (clearsprings) |
---|
.. | .. |
---|
1516 | 1519 | second = springs.get((i+1)%springs.size()); |
---|
1517 | 1520 | |
---|
1518 | 1521 | if (first == second) |
---|
| 1522 | + { |
---|
| 1523 | + new Exception().printStackTrace(); |
---|
1519 | 1524 | System.exit(0); |
---|
| 1525 | + } |
---|
1520 | 1526 | |
---|
1521 | 1527 | temp.set(first.GetOther(this).position); |
---|
1522 | 1528 | temp.sub(position); |
---|
.. | .. |
---|
1646 | 1652 | Spring second = springs.get((i+1)%springs.size()); |
---|
1647 | 1653 | |
---|
1648 | 1654 | if (first == second) |
---|
| 1655 | + { |
---|
| 1656 | + new Exception().printStackTrace(); |
---|
1649 | 1657 | System.exit(0); |
---|
| 1658 | + } |
---|
1650 | 1659 | |
---|
1651 | 1660 | temp.set(first.GetOther(this).position); |
---|
1652 | 1661 | temp.sub(position); |
---|
.. | .. |
---|
3289 | 3298 | |
---|
3290 | 3299 | if (N2.mass == Float.MAX_VALUE) |
---|
3291 | 3300 | { |
---|
| 3301 | + new Exception().printStackTrace(); |
---|
3292 | 3302 | System.exit(0); |
---|
3293 | 3303 | magnitude *= solidity; // * K; |
---|
3294 | 3304 | |
---|