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/TestTextureRenderer.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/TestTextureRenderer.java')
-rwxr-xr-x | src/demos/j2d/TestTextureRenderer.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/demos/j2d/TestTextureRenderer.java b/src/demos/j2d/TestTextureRenderer.java index cedee83..a217c7b 100755 --- a/src/demos/j2d/TestTextureRenderer.java +++ b/src/demos/j2d/TestTextureRenderer.java @@ -61,7 +61,6 @@ import javax.media.opengl.GLCapabilities; import javax.media.opengl.GLEventListener; import javax.media.opengl.GLProfile; import javax.media.opengl.awt.GLCanvas; -import javax.media.opengl.glu.GLU; import com.jogamp.opengl.util.Animator; @@ -71,13 +70,6 @@ import com.jogamp.opengl.util.Animator; public class TestTextureRenderer implements GLEventListener { 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("Java 2D Renderer Test"); GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GL2)); caps.setAlphaBits(8); @@ -114,7 +106,6 @@ public class TestTextureRenderer implements GLEventListener { private Rectangle textBounds; private Rectangle fpsBounds; private String TEST_STRING = "Java 2D Text"; - private GLU glu = new GLU(); private long startTime; private int frameCount; private DecimalFormat format = new DecimalFormat("####.00"); @@ -195,8 +186,6 @@ public class TestTextureRenderer implements GLEventListener { velocity.setY(-1.0f * Math.abs(velocity.y())); } - GL gl = drawable.getGL(); - // Prepare to draw from the renderer's texture renderer.beginOrthoRendering(drawable.getWidth(), drawable.getHeight()); |