[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view Display.java, 1.88, 1.89
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2009-05-15 12:46:28
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv11876/src/net/sourceforge/bprocessor/gl/view Modified Files: Display.java Log Message: Refactored grid Index: Display.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/Display.java,v retrieving revision 1.88 retrieving revision 1.89 diff -C2 -d -r1.88 -r1.89 *** Display.java 15 May 2009 08:01:39 -0000 1.88 --- Display.java 15 May 2009 12:46:05 -0000 1.89 *************** *** 659,665 **** } else if (constructor instanceof Line) { paint((Line) constructor, middleblue); ! } else if (constructor instanceof Grid) { ! draw((Grid) constructor); ! } } --- 659,663 ---- } else if (constructor instanceof Line) { paint((Line) constructor, middleblue); ! } } *************** *** 1148,1157 **** if (space == active) { if (construction()) { ! disableClipplanes(); ! gl.glDepthMask(false); ! draw(grid); ! gl.glDepthMask(true); ! paintConstructors(constructors); ! enableClipplanes(); } } --- 1146,1163 ---- if (space == active) { if (construction()) { ! Grid grid = null; ! for (Constructor constructor : constructors) { ! if (constructor instanceof Grid) { ! grid = (Grid) constructor; ! } ! disableClipplanes(); ! if (grid != null) { ! gl.glDepthMask(false); ! draw(grid); ! gl.glDepthMask(true); ! } ! paintConstructors(constructors); ! enableClipplanes(); ! } } } |