summaryrefslogtreecommitdiffstats
path: root/src/demos/es1
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-09-12 15:18:19 -0700
committerSven Gothel <[email protected]>2009-09-12 15:18:19 -0700
commitdbf61f36b04d7921197d447430a66e4635d65beb (patch)
tree67b2c1f6612a4186830512fb82c5703d6b999ce7 /src/demos/es1
parent84cd1236dbfc44dd18cf377589e56990a192f63b (diff)
Test (demos.GLNewtRun) NEWT: Native window parenting (X11: OK); AWTWindow external Frame OK
Diffstat (limited to 'src/demos/es1')
-rwxr-xr-xsrc/demos/es1/RedSquare.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java
index 187a5af..02e8454 100755
--- a/src/demos/es1/RedSquare.java
+++ b/src/demos/es1/RedSquare.java
@@ -14,13 +14,17 @@ import com.sun.javafx.newt.opengl.*;
public class RedSquare extends Thread implements WindowListener, KeyListener, MouseListener, GLEventListener {
- private GLWindow window;
+ public GLWindow window;
private GLProfile glp;
private GLU glu;
private boolean quit = false;
private String glprofile;
private int type;
+ public RedSquare() {
+ this(null, USE_NEWT);
+ }
+
public RedSquare(String glprofile, int type) {
super();
this.glprofile=glprofile;