summaryrefslogtreecommitdiffstats
path: root/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2009-06-19 20:35:04 +0000
committerKenneth Russel <[email protected]>2009-06-19 20:35:04 +0000
commitd075bda489c425d7f1ccd45944db6a8696bb0fd2 (patch)
tree0d2c22bb410c0d116c60dfc0bb82888006653e72 /src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java
parent3ac44007a441db45e5ed45b901806dc5b0c2a6b6 (diff)
Improved interaction in ExaminerViewer to match Maya's camera
controls. Added optional up vector. Simplified logic by using MouseEvent.getModifiersEx(). MouseButtonHelper is no longer necessary and has been removed. Updated demos. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@357 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java')
-rw-r--r--src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java b/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java
index 427d645..a813906 100644
--- a/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java
+++ b/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java
@@ -40,7 +40,6 @@ import gleem.BSphereProvider;
import gleem.CameraParameters;
import gleem.ExaminerViewer;
import gleem.ManipManager;
-import gleem.MouseButtonHelper;
import gleem.linalg.Vec3f;
import java.awt.BorderLayout;
import java.awt.Frame;
@@ -195,7 +194,8 @@ public class ProceduralTexturePhysics extends Demo {
manager.registerWindow((AWTGLAutoDrawable) drawable);
this.drawable = drawable;
- viewer = new ExaminerViewer(MouseButtonHelper.numMouseButtons());
+ viewer = new ExaminerViewer();
+ viewer.setUpVector(Vec3f.Y_AXIS);
viewer.setAutoRedrawMode(false);
viewer.attach((AWTGLAutoDrawable) drawable, new BSphereProvider() {