summaryrefslogtreecommitdiffstats
path: root/src/jbullet
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-08-12 13:44:30 +0000
committerSven Gothel <[email protected]>2008-08-12 13:44:30 +0000
commit5c6c7743e602285a88f07a52bde123861ec1b437 (patch)
tree9ddcca2b7aadcb2e5a8d9017cd5caee75e13e237 /src/jbullet
parent95d35b7199b49f111ccec5c37bb6a1f305693f86 (diff)
Ragdoll: lil tuning
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@271 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/jbullet')
-rw-r--r--src/jbullet/src/javabullet/demos/opengl/DemoApplication.java6
-rw-r--r--src/jbullet/src/javabullet/demos/opengl/GLSRT.java4
-rw-r--r--src/jbullet/src/javabullet/demos/opengl/GLShapeDrawer.java2
-rw-r--r--src/jbullet/src/javabullet/demos/opengl/JOGL.java4
4 files changed, 9 insertions, 7 deletions
diff --git a/src/jbullet/src/javabullet/demos/opengl/DemoApplication.java b/src/jbullet/src/javabullet/demos/opengl/DemoApplication.java
index 45b9b57..c36db00 100644
--- a/src/jbullet/src/javabullet/demos/opengl/DemoApplication.java
+++ b/src/jbullet/src/javabullet/demos/opengl/DemoApplication.java
@@ -177,8 +177,8 @@ public abstract class DemoApplication
gl.glClearColor(0.7f, 0.7f, 0.7f, 0f);
// JAU
- // gl.glEnable(gl.GL_CULL_FACE);
- // gl.glCullFace(gl.GL_BACK);
+ gl.glEnable(gl.GL_CULL_FACE);
+ gl.glCullFace(gl.GL_BACK);
}
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
@@ -837,7 +837,7 @@ public abstract class DemoApplication
gl.glMatrixMode(gl.GL_PROJECTION);
// save previous matrix which contains the
//settings for the perspective projection
- gl.glPushMatrix();
+ // gl.glPushMatrix();
// reset matrix
gl.glLoadIdentity();
// set a 2D orthographic projection
diff --git a/src/jbullet/src/javabullet/demos/opengl/GLSRT.java b/src/jbullet/src/javabullet/demos/opengl/GLSRT.java
index fb5aa38..cdd4aef 100644
--- a/src/jbullet/src/javabullet/demos/opengl/GLSRT.java
+++ b/src/jbullet/src/javabullet/demos/opengl/GLSRT.java
@@ -44,6 +44,10 @@ public class GLSRT {
public static final boolean VBO_CACHE = true; // JAU
// public static final boolean VBO_CACHE = false;
+ /*static {
+ ImmModeSink.setVBOUsage(false);
+ }*/
+
private GLU glu;
// private GLFont font;
diff --git a/src/jbullet/src/javabullet/demos/opengl/GLShapeDrawer.java b/src/jbullet/src/javabullet/demos/opengl/GLShapeDrawer.java
index 74ae73c..76fb9b1 100644
--- a/src/jbullet/src/javabullet/demos/opengl/GLShapeDrawer.java
+++ b/src/jbullet/src/javabullet/demos/opengl/GLShapeDrawer.java
@@ -178,7 +178,6 @@ public class GLShapeDrawer {
glsrt.drawCylinder(gl, radius,halfHeight,upAxis);
- gl.glPushMatrix();
gl.glTranslatef(0f, -halfHeight, 0f);
//glutSolidSphere(radius,10,10);
//sphere.draw(radius, 10, 10);
@@ -187,7 +186,6 @@ public class GLShapeDrawer {
//glutSolidSphere(radius,10,10);
//sphere.draw(radius, 10, 10);
glsrt.drawSphere(gl, radius, 10, 10);
- gl.glPopMatrix();
useWireframeFallback = false;
break;
}
diff --git a/src/jbullet/src/javabullet/demos/opengl/JOGL.java b/src/jbullet/src/javabullet/demos/opengl/JOGL.java
index 0f3c11c..8b3c418 100644
--- a/src/jbullet/src/javabullet/demos/opengl/JOGL.java
+++ b/src/jbullet/src/javabullet/demos/opengl/JOGL.java
@@ -40,9 +40,9 @@ public class JOGL implements MouseListener {
public boolean quit = false;
public void mouseClicked(MouseEvent e) {
- if(e.getClickCount()>1) {
+ //if(e.getClickCount()>1) {
quit=true;
- }
+ //}
}
public void mouseEntered(MouseEvent e) {
}