From be0ebf39ac48e904803ad35ad280dc6ecde03119 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 21 Jun 2012 20:58:04 +0200 Subject: 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 --- src/demos/j2d/TextCube.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/demos/j2d/TextCube.java') 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 - // - // NotFirstUIActionOnProcess - // - 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); -- cgit v1.2.3