diff options
author | Sven Gothel <[email protected]> | 2012-06-21 20:58:04 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-06-21 20:58:04 +0200 |
commit | be0ebf39ac48e904803ad35ad280dc6ecde03119 (patch) | |
tree | 877e5b6cb721d182cf6f5b6c7bb2d6d34dcef0fd /src/demos/j2d/TextCube.java | |
parent | 9c2d74736fdd723267aaf6f7a5018dd1bc882775 (diff) |
Remove GLProfile.initSingleton(..) calls and JNLP argument 'NotFirstUIActionOnProcess'; Adapt to CapabilitiesChooser API/generics change; Misc
- Remove GLProfile.initSingleton(..) calls and JNLP argument 'NotFirstUIActionOnProcess'
- Adapt to CapabilitiesChooser API/generics change
- Cleanup some generics use .. etc
Diffstat (limited to 'src/demos/j2d/TextCube.java')
-rwxr-xr-x | src/demos/j2d/TextCube.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/demos/j2d/TextCube.java b/src/demos/j2d/TextCube.java index 4587e10..6b72259 100755 --- a/src/demos/j2d/TextCube.java +++ b/src/demos/j2d/TextCube.java @@ -50,9 +50,7 @@ import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.geom.Rectangle2D; -import javax.media.opengl.GL; import javax.media.opengl.GLCapabilities; -import javax.media.opengl.GL2ES1; import javax.media.opengl.GL2; import javax.media.opengl.GLAutoDrawable; import javax.media.opengl.GLProfile; @@ -74,13 +72,6 @@ public class TextCube extends Demo { private float textScaleFactor; 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); - Frame frame = new Frame("Text Cube"); frame.setLayout(new BorderLayout()); @@ -119,7 +110,7 @@ public class TextCube extends Demo { // them all fit on the faces of the cube Rectangle2D bounds = renderer.getBounds("Bottom"); float w = (float) bounds.getWidth(); - float h = (float) bounds.getHeight(); + // float h = (float) bounds.getHeight(); textScaleFactor = 1.0f / (w * 1.1f); fps = new FPSCounter(drawable, 36); |