summaryrefslogtreecommitdiffstats
path: root/src/demos/misc/Picking.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-06-21 20:58:04 +0200
committerSven Gothel <[email protected]>2012-06-21 20:58:04 +0200
commitbe0ebf39ac48e904803ad35ad280dc6ecde03119 (patch)
tree877e5b6cb721d182cf6f5b6c7bb2d6d34dcef0fd /src/demos/misc/Picking.java
parent9c2d74736fdd723267aaf6f7a5018dd1bc882775 (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/misc/Picking.java')
-rwxr-xr-xsrc/demos/misc/Picking.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/demos/misc/Picking.java b/src/demos/misc/Picking.java
index 52afca0..641b86f 100755
--- a/src/demos/misc/Picking.java
+++ b/src/demos/misc/Picking.java
@@ -13,7 +13,6 @@ package demos.misc;
import com.jogamp.common.nio.Buffers;
import java.awt.*;
import java.awt.event.*;
-import java.awt.Canvas.*;
import java.nio.*;
import javax.media.opengl.*;
import javax.media.opengl.awt.GLCanvas;
@@ -24,13 +23,6 @@ public class Picking
{
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);
-
new Picking();
}
@@ -38,7 +30,6 @@ public class Picking
{
Frame frame = new Frame("Picking Example");
GLCapabilities capabilities = new GLCapabilities(null);
- GLDrawableFactory factory = GLDrawableFactory.getFactory(capabilities.getGLProfile());
GLCanvas drawable = new GLCanvas(capabilities);
final Renderer renderer = new Renderer();
drawable.addGLEventListener(renderer);
@@ -66,12 +57,10 @@ public class Picking
int mouse_x, mouse_y;
private GLU glu = new GLU();
- private GLAutoDrawable gldrawable;
public void init(GLAutoDrawable drawable)
{
GL2 gl = drawable.getGL().getGL2();
- this.gldrawable = drawable;
gl.glEnable(GL2.GL_CULL_FACE);
gl.glEnable(GL2.GL_DEPTH_TEST);
gl.glEnable(GL2.GL_NORMALIZE);
@@ -81,7 +70,6 @@ public class Picking
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height)
{
GL2 gl = drawable.getGL().getGL2();
- float h = (float) height / (float) width;
gl.glViewport(0, 0, width, height);
gl.glMatrixMode(GL2.GL_PROJECTION);
gl.glLoadIdentity();