[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.216, 1.217
Status: Pre-Alpha
Brought to you by:
henryml
From: Nordholt <nor...@us...> - 2007-06-26 00:43:37
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25601/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: The color of temporary vertices is now looked up in the colormap. Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.216 retrieving revision 1.217 diff -C2 -d -r1.216 -r1.217 *** View.java 25 Jun 2007 21:43:33 -0000 1.216 --- View.java 26 Jun 2007 00:43:29 -0000 1.217 *************** *** 980,986 **** { gl.glColor3fv(constructorColor, 0); ! Iterator it = tempVertices.iterator(); ! while (it.hasNext()) { ! drawGeometric((Geometric) it.next()); } } --- 980,991 ---- { gl.glColor3fv(constructorColor, 0); ! for (Vertex v : tempVertices) { ! if (colorMap.get(v) != null) { ! gl.glColor3fv((float[])colorMap.get(v), 0); ! drawGeometric(v); ! gl.glColor3fv(constructorColor, 0); ! } else { ! drawGeometric(v); ! } } } |