diff options
author | Sven Gothel <[email protected]> | 2009-09-12 15:18:19 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-09-12 15:18:19 -0700 |
commit | dbf61f36b04d7921197d447430a66e4635d65beb (patch) | |
tree | 67b2c1f6612a4186830512fb82c5703d6b999ce7 /src/demos/es1/RedSquare.java | |
parent | 84cd1236dbfc44dd18cf377589e56990a192f63b (diff) |
Test (demos.GLNewtRun) NEWT: Native window parenting (X11: OK); AWTWindow external Frame OK
Diffstat (limited to 'src/demos/es1/RedSquare.java')
-rwxr-xr-x | src/demos/es1/RedSquare.java | 6 |
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; |