summaryrefslogtreecommitdiffstats
path: root/src/redbook
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-10-14 21:34:27 +0200
committerSven Gothel <[email protected]>2010-10-14 21:34:27 +0200
commit1ff81eb806d6df78994a808217eb2c5f6b4ef8da (patch)
tree7ae11fd92f63019c6c54862c66eb2656bcc2ef97 /src/redbook
parent0d1ea8ae8eb940b1b29f4f80c232a1d456300362 (diff)
Fix/Syn with JOGL 774138544e1eec3330309ad682fa05154a07ab8d ; Notably add: Applet's with native NEWT support, ie jogl-newt-applet-runner-gears.html
Diffstat (limited to 'src/redbook')
-rw-r--r--src/redbook/src/glredbook10/alpha.java11
-rw-r--r--src/redbook/src/glredbook1314/combiner.java11
-rw-r--r--src/redbook/src/glredbook1314/fogcoord.java11
-rw-r--r--src/redbook/src/glredbook1314/multisamp.java11
-rw-r--r--src/redbook/src/glredbook1314/shadowmap.java11
5 files changed, 40 insertions, 15 deletions
diff --git a/src/redbook/src/glredbook10/alpha.java b/src/redbook/src/glredbook10/alpha.java
index 0c1a653..c040a41 100644
--- a/src/redbook/src/glredbook10/alpha.java
+++ b/src/redbook/src/glredbook10/alpha.java
@@ -19,9 +19,6 @@ import javax.media.opengl.glu.GLU;
public class alpha//
extends GLSkeleton<GLCanvas>
implements GLEventListener, KeyListener {
- static {
- GLProfile.initSingleton();
- }
@Override
protected GLCanvas createDrawable() {
@@ -38,6 +35,14 @@ public class alpha//
* mode, and handle input events.
*/
public static void main(String[] args) {
+ // set argument 'NotFirstUIActionOnProcess' in the JNLP's application-desc tag for example
+ // <application-desc main-class="demos.j2d.TextCube"/>
+ // <argument>NotFirstUIActionOnProcess</argument>
+ // </application-desc>
+ // boolean firstUIActionOnProcess = 0==args.length || !args[0].equals("NotFirstUIActionOnProcess") ;
+ // GLProfile.initSingleton(firstUIActionOnProcess);
+ GLProfile.initSingleton(false); // just lazy to touch all html/jnlp's
+
alpha demo = new alpha();
//
JFrame.setDefaultLookAndFeelDecorated(true);
diff --git a/src/redbook/src/glredbook1314/combiner.java b/src/redbook/src/glredbook1314/combiner.java
index 6c50d3e..27cff3e 100644
--- a/src/redbook/src/glredbook1314/combiner.java
+++ b/src/redbook/src/glredbook1314/combiner.java
@@ -30,9 +30,6 @@ import javax.media.opengl.glu.GLU;
public class combiner//
extends GLSkeleton<GLJPanel>
implements GLEventListener, KeyListener {
- static {
- GLProfile.initSingleton();
- }
private GLU glu;
private static final int imageWidth = 8;
private static final int imageHeight = 8;
@@ -59,6 +56,14 @@ public class combiner//
}
public static void main(String[] args) {
+ // set argument 'NotFirstUIActionOnProcess' in the JNLP's application-desc tag for example
+ // <application-desc main-class="demos.j2d.TextCube"/>
+ // <argument>NotFirstUIActionOnProcess</argument>
+ // </application-desc>
+ // boolean firstUIActionOnProcess = 0==args.length || !args[0].equals("NotFirstUIActionOnProcess") ;
+ // GLProfile.initSingleton(firstUIActionOnProcess);
+ GLProfile.initSingleton(false); // just lazy to touch all html/jnlp's
+
combiner demo = new combiner();
GLCapabilities caps = new GLCapabilities(null);
diff --git a/src/redbook/src/glredbook1314/fogcoord.java b/src/redbook/src/glredbook1314/fogcoord.java
index 4375d80..19410de 100644
--- a/src/redbook/src/glredbook1314/fogcoord.java
+++ b/src/redbook/src/glredbook1314/fogcoord.java
@@ -29,9 +29,6 @@ public class fogcoord//
extends GLSkeleton<GLCanvas>
implements GLEventListener, KeyListener {
- static {
- GLProfile.initSingleton();
- }
private GLU glu;
private float f1, f2, f3;
private KeyEvent key;
@@ -48,6 +45,14 @@ public class fogcoord//
}
public static void main(String[] args) {
+ // set argument 'NotFirstUIActionOnProcess' in the JNLP's application-desc tag for example
+ // <application-desc main-class="demos.j2d.TextCube"/>
+ // <argument>NotFirstUIActionOnProcess</argument>
+ // </application-desc>
+ // boolean firstUIActionOnProcess = 0==args.length || !args[0].equals("NotFirstUIActionOnProcess") ;
+ // GLProfile.initSingleton(firstUIActionOnProcess);
+ GLProfile.initSingleton(false); // just lazy to touch all html/jnlp's
+
GLCapabilities caps = new GLCapabilities(null);
GLCanvas canvas = new GLCanvas(caps);
diff --git a/src/redbook/src/glredbook1314/multisamp.java b/src/redbook/src/glredbook1314/multisamp.java
index 4aa4c3f..f3212b7 100644
--- a/src/redbook/src/glredbook1314/multisamp.java
+++ b/src/redbook/src/glredbook1314/multisamp.java
@@ -23,9 +23,6 @@ import javax.media.opengl.glu.GLU;
public class multisamp //
extends GLSkeleton<GLCanvas>
implements GLEventListener, KeyListener {
- static {
- GLProfile.initSingleton();
- }
private GLU glu;
private boolean bgtoggle = true;
@@ -42,6 +39,14 @@ public class multisamp //
}
public static void main(String[] args) {
+ // set argument 'NotFirstUIActionOnProcess' in the JNLP's application-desc tag for example
+ // <application-desc main-class="demos.j2d.TextCube"/>
+ // <argument>NotFirstUIActionOnProcess</argument>
+ // </application-desc>
+ // boolean firstUIActionOnProcess = 0==args.length || !args[0].equals("NotFirstUIActionOnProcess") ;
+ // GLProfile.initSingleton(firstUIActionOnProcess);
+ GLProfile.initSingleton(false); // just lazy to touch all html/jnlp's
+
multisamp demo = new multisamp();
JFrame.setDefaultLookAndFeelDecorated(true);
diff --git a/src/redbook/src/glredbook1314/shadowmap.java b/src/redbook/src/glredbook1314/shadowmap.java
index 952145c..176d529 100644
--- a/src/redbook/src/glredbook1314/shadowmap.java
+++ b/src/redbook/src/glredbook1314/shadowmap.java
@@ -20,9 +20,6 @@ import javax.media.opengl.glu.GLU;
public class shadowmap //
extends GLSkeleton<GLCanvas>
implements GLEventListener, KeyListener {
- static {
- GLProfile.initSingleton();
- }
private GLU glu;
private GLUT glut;
private FPSAnimator animator;
@@ -75,6 +72,14 @@ public class shadowmap //
}
public static void main(String[] args) {
+ // set argument 'NotFirstUIActionOnProcess' in the JNLP's application-desc tag for example
+ // <application-desc main-class="demos.j2d.TextCube"/>
+ // <argument>NotFirstUIActionOnProcess</argument>
+ // </application-desc>
+ // boolean firstUIActionOnProcess = 0==args.length || !args[0].equals("NotFirstUIActionOnProcess") ;
+ // GLProfile.initSingleton(firstUIActionOnProcess);
+ GLProfile.initSingleton(false); // just lazy to touch all html/jnlp's
+
new shadowmap().run();
}