aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/demos/joglinterop/UserSceneInteraction.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/mbien/opencl/demos/joglinterop/UserSceneInteraction.java')
-rw-r--r--src/com/mbien/opencl/demos/joglinterop/UserSceneInteraction.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/mbien/opencl/demos/joglinterop/UserSceneInteraction.java b/src/com/mbien/opencl/demos/joglinterop/UserSceneInteraction.java
index ab36f5e..bec2d28 100644
--- a/src/com/mbien/opencl/demos/joglinterop/UserSceneInteraction.java
+++ b/src/com/mbien/opencl/demos/joglinterop/UserSceneInteraction.java
@@ -16,8 +16,8 @@ import javax.media.opengl.GL2;
public class UserSceneInteraction {
private float z = -20;
- private float rotx;
- private float roty;
+ private float rotx = 45;
+ private float roty = 30;
private Point dragstart;
private enum MOUSE_MODE { DRAG_ROTATE, DRAG_ZOOM }
@@ -54,7 +54,7 @@ public class UserSceneInteraction {
public void mouseWheelMoved(MouseWheelEvent e) {
z += e.getWheelRotation()*5;
}
-
+
});
component.addMouseListener(new MouseAdapter() {
@@ -100,4 +100,4 @@ public class UserSceneInteraction {
}
-}
+} \ No newline at end of file