.. | .. |
---|
173 | 173 | theRenderer = this; |
---|
174 | 174 | } |
---|
175 | 175 | |
---|
| 176 | + CameraPane(Object3D o, Camera cam, boolean withcontext) |
---|
| 177 | + { |
---|
| 178 | + super(defaultcaps, null, withcontext?glcontext:null, null); |
---|
| 179 | + |
---|
| 180 | + //System.out.println("AMERICA AREA = " + (9458886 + 9210755 + 8480395 + 2736391 + 1943018 + 1289475 + 1141569 + 1069350 + 911559 + 721229 + 395886 + 377972 + 246700 + 211156 + 173985 + 141133 + 118279 + 112079 + 108523)); |
---|
| 181 | + glcontext = getContext(); |
---|
| 182 | + |
---|
| 183 | + cameras = new Camera[2]; |
---|
| 184 | + targetLookAts = new cVector[2]; |
---|
| 185 | + |
---|
| 186 | + SetCamera(cam); |
---|
| 187 | + |
---|
| 188 | + SetLight(new Camera(new cVector(10, 10, -20))); |
---|
| 189 | + |
---|
| 190 | + object = o; |
---|
| 191 | + |
---|
| 192 | + setBackground(Color.white); |
---|
| 193 | + |
---|
| 194 | + addKeyListener(this); |
---|
| 195 | + addMouseListener(this); |
---|
| 196 | + addMouseMotionListener(this); |
---|
| 197 | + addMouseWheelListener(this); |
---|
| 198 | + //System.out.println("addGLEventListener: " + this); |
---|
| 199 | + addGLEventListener(this); |
---|
| 200 | + |
---|
| 201 | +// pingthread.start(); // may 2013 |
---|
| 202 | + } |
---|
| 203 | + |
---|
176 | 204 | static boolean AntialiasingEnabled() |
---|
177 | 205 | { |
---|
178 | 206 | return CURRENTANTIALIAS > 0; |
---|
.. | .. |
---|
672 | 700 | //assert (cam.hAspect == 0); |
---|
673 | 701 | cam.hAspect = 0; |
---|
674 | 702 | lightCamera = cam; |
---|
675 | | - } |
---|
676 | | - |
---|
677 | | - CameraPane(Object3D o, Camera cam, boolean withcontext) |
---|
678 | | - { |
---|
679 | | - super(defaultcaps, null, withcontext?glcontext:null, null); |
---|
680 | | - |
---|
681 | | - //System.out.println("AMERICA AREA = " + (9458886 + 9210755 + 8480395 + 2736391 + 1943018 + 1289475 + 1141569 + 1069350 + 911559 + 721229 + 395886 + 377972 + 246700 + 211156 + 173985 + 141133 + 118279 + 112079 + 108523)); |
---|
682 | | - glcontext = getContext(); |
---|
683 | | - |
---|
684 | | - cameras = new Camera[2]; |
---|
685 | | - targetLookAts = new cVector[2]; |
---|
686 | | - |
---|
687 | | - SetCamera(cam); |
---|
688 | | - |
---|
689 | | - SetLight(new Camera(new cVector(10, 10, -20))); |
---|
690 | | - |
---|
691 | | - object = o; |
---|
692 | | - |
---|
693 | | - setBackground(Color.white); |
---|
694 | | - |
---|
695 | | - addKeyListener(this); |
---|
696 | | - addMouseListener(this); |
---|
697 | | - addMouseMotionListener(this); |
---|
698 | | - addMouseWheelListener(this); |
---|
699 | | - //System.out.println("addGLEventListener: " + this); |
---|
700 | | - addGLEventListener(this); |
---|
701 | | - |
---|
702 | | -// pingthread.start(); // may 2013 |
---|
703 | 703 | } |
---|
704 | 704 | |
---|
705 | 705 | private static void ApplyTransform(GL gl, Mat4f xform) |
---|