[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view AbstractView.java,1.16,1.17 ViewFactor
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2005-08-31 14:56:39
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1508/src/net/sourceforge/bprocessor/gl/view Modified Files: AbstractView.java ViewFactory.java Log Message: Reduced flickering in hit-detection Index: AbstractView.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/AbstractView.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** AbstractView.java 31 Aug 2005 07:02:51 -0000 1.16 --- AbstractView.java 31 Aug 2005 14:56:31 -0000 1.17 *************** *** 246,251 **** gl.glFlush(); hits = gl.glRenderMode(GL.GL_RENDER); ! glv.repaint(); ! } long after = System.currentTimeMillis(); --- 246,253 ---- gl.glFlush(); hits = gl.glRenderMode(GL.GL_RENDER); ! //glv.repaint(); ! } else { ! gld.swapBuffers(); ! } long after = System.currentTimeMillis(); *************** *** 747,751 **** selectedSurface = null; } ! glv.repaint(); } --- 749,753 ---- selectedSurface = null; } ! glv.repaint(true); } *************** *** 822,826 **** --- 824,832 ---- selectMode = VERTICES; //repainting to get selection buffer + //display(glv.getGLDrawable()); + + System.out.println("Calling repaint"); glv.repaint(true); + System.out.println("Done"); id = processSelect(); if (id != null) { Index: ViewFactory.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/ViewFactory.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ViewFactory.java 25 Aug 2005 16:08:12 -0000 1.4 --- ViewFactory.java 31 Aug 2005 14:56:31 -0000 1.5 *************** *** 250,254 **** public void actionPerformed(ActionEvent e) { glv.getView().changeDrawMode(View.WIREFRAME_MODE); ! glv.repaint(); } } --- 250,254 ---- public void actionPerformed(ActionEvent e) { glv.getView().changeDrawMode(View.WIREFRAME_MODE); ! glv.repaint(true); } } *************** *** 279,283 **** public void actionPerformed(ActionEvent e) { glv.getView().changeDrawMode(View.SOLID_MODE); ! glv.repaint(); } } --- 279,283 ---- public void actionPerformed(ActionEvent e) { glv.getView().changeDrawMode(View.SOLID_MODE); ! glv.repaint(true); } } *************** *** 308,312 **** public void actionPerformed(ActionEvent e) { glv.getView().changeDrawMode(View.LIGHTING_MODE); ! glv.repaint(); } } --- 308,312 ---- public void actionPerformed(ActionEvent e) { glv.getView().changeDrawMode(View.LIGHTING_MODE); ! glv.repaint(true); } } |