Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1508/src/net/sourceforge/bprocessor/gl
Modified Files:
GLView.java
Log Message:
Reduced flickering in hit-detection
Index: GLView.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/GLView.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** GLView.java 17 Aug 2005 11:06:47 -0000 1.10
--- GLView.java 31 Aug 2005 14:56:33 -0000 1.11
***************
*** 14,17 ****
--- 14,18 ----
import net.java.games.jogl.GLCapabilities;
+ import net.java.games.jogl.GLDrawable;
import net.java.games.jogl.GLDrawableFactory;
import net.java.games.jogl.GLCanvas;
***************
*** 55,58 ****
--- 56,60 ----
GUI.getInstance().registerPanel(glc, GUI.SPLIT_MIDDLE);
log.info("Done Creating GlView");
+ glc.setAutoSwapBufferMode(false);
}
***************
*** 91,95 ****
}
getView().reset();
! this.repaint();
}
--- 93,97 ----
}
getView().reset();
! this.repaint(true);
}
***************
*** 98,102 ****
*/
public void repaint() {
! glc.repaint();
}
--- 100,104 ----
*/
public void repaint() {
! glc.display();
}
***************
*** 109,113 ****
glc.display();
} else {
! glc.repaint();
}
}
--- 111,115 ----
glc.display();
} else {
! glc.display();
}
}
***************
*** 130,132 ****
--- 132,142 ----
return tool;
}
+
+ /**
+ * Return the GLDrawable
+ * @return The GlDrawable
+ */
+ public GLDrawable getGLDrawable() {
+ return glc;
+ }
}
|