[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java, 1.137, 1.138
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-08-14 14:06:46
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5378/src/net/sourceforge/bprocessor/gl/view Modified Files: View.java Log Message: Changed drawing of constructor-planes Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.137 retrieving revision 1.138 diff -C2 -d -r1.137 -r1.138 *** View.java 14 Aug 2006 11:17:50 -0000 1.137 --- View.java 14 Aug 2006 14:06:43 -0000 1.138 *************** *** 111,115 **** /** Used for clipping planes */ ! public static final float[] CLIP_PLANE_INTERIOR_COLOR = new float[] {0.9f, 0.9f, 0.9f, 0.3f}; /** Used for target objects */ --- 111,115 ---- /** Used for clipping planes */ ! public static final float[] CLIP_PLANE_INTERIOR_COLOR = new float[] {0.95f, 0.95f, 0.95f, 0.9f}; /** Used for target objects */ *************** *** 1162,1170 **** Vertex d = origin.minus(u).minus(v); ! gl.glEnable(GL.GL_POLYGON_STIPPLE); ! gl.glPolygonStipple(seethrough); ! if (colorize) { ! gl.glColor3fv(CONSTRUCTOR_COLOR); ! } gl.glBegin(GL.GL_QUADS); gl.glVertex3d(a.getX(), a.getY(), a.getZ()); --- 1162,1170 ---- Vertex d = origin.minus(u).minus(v); ! //(gl.glEnable(GL.GL_POLYGON_STIPPLE); ! //gl.glPolygonStipple(seethrough); ! gl.glColor4fv(CLIP_PLANE_INTERIOR_COLOR); ! gl.glEnable(GL.GL_POLYGON_OFFSET_FILL); ! gl.glPolygonOffset(0.5f, 0.5f); gl.glBegin(GL.GL_QUADS); gl.glVertex3d(a.getX(), a.getY(), a.getZ()); *************** *** 1173,1177 **** gl.glVertex3d(d.getX(), d.getY(), d.getZ()); gl.glEnd(); ! gl.glDisable(GL.GL_POLYGON_STIPPLE); } } else { --- 1173,1178 ---- gl.glVertex3d(d.getX(), d.getY(), d.getZ()); gl.glEnd(); ! gl.glDisable(GL.GL_POLYGON_OFFSET_FILL); ! //gl.glDisable(GL.GL_POLYGON_STIPPLE); } } else { |