From 611518a0ff65fd05e517d44adbcec639570b86eb Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Thu, 21 Feb 2019 23:44:07 -0500 Subject: [PATCH] Yellow theme. --- CameraPane.java | 56 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 28 insertions(+), 28 deletions(-) diff --git a/CameraPane.java b/CameraPane.java index a5a5ed5..b5fba83 100644 --- a/CameraPane.java +++ b/CameraPane.java @@ -173,6 +173,34 @@ theRenderer = this; } + CameraPane(Object3D o, Camera cam, boolean withcontext) + { + super(defaultcaps, null, withcontext?glcontext:null, null); + + //System.out.println("AMERICA AREA = " + (9458886 + 9210755 + 8480395 + 2736391 + 1943018 + 1289475 + 1141569 + 1069350 + 911559 + 721229 + 395886 + 377972 + 246700 + 211156 + 173985 + 141133 + 118279 + 112079 + 108523)); + glcontext = getContext(); + + cameras = new Camera[2]; + targetLookAts = new cVector[2]; + + SetCamera(cam); + + SetLight(new Camera(new cVector(10, 10, -20))); + + object = o; + + setBackground(Color.white); + + addKeyListener(this); + addMouseListener(this); + addMouseMotionListener(this); + addMouseWheelListener(this); + //System.out.println("addGLEventListener: " + this); + addGLEventListener(this); + +// pingthread.start(); // may 2013 + } + static boolean AntialiasingEnabled() { return CURRENTANTIALIAS > 0; @@ -672,34 +700,6 @@ //assert (cam.hAspect == 0); cam.hAspect = 0; lightCamera = cam; - } - - CameraPane(Object3D o, Camera cam, boolean withcontext) - { - super(defaultcaps, null, withcontext?glcontext:null, null); - - //System.out.println("AMERICA AREA = " + (9458886 + 9210755 + 8480395 + 2736391 + 1943018 + 1289475 + 1141569 + 1069350 + 911559 + 721229 + 395886 + 377972 + 246700 + 211156 + 173985 + 141133 + 118279 + 112079 + 108523)); - glcontext = getContext(); - - cameras = new Camera[2]; - targetLookAts = new cVector[2]; - - SetCamera(cam); - - SetLight(new Camera(new cVector(10, 10, -20))); - - object = o; - - setBackground(Color.white); - - addKeyListener(this); - addMouseListener(this); - addMouseMotionListener(this); - addMouseWheelListener(this); - //System.out.println("addGLEventListener: " + this); - addGLEventListener(this); - -// pingthread.start(); // may 2013 } private static void ApplyTransform(GL gl, Mat4f xform) -- Gitblit v1.6.2