Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3001/src/net/sourceforge/bprocessor/gl/view
Modified Files:
Display.java
Log Message:
Void is displayed in cornflower blue
Index: Display.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/Display.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Display.java 25 Sep 2007 11:07:39 -0000 1.11
--- Display.java 25 Sep 2007 13:45:02 -0000 1.12
***************
*** 54,57 ****
--- 54,60 ----
private static float[] blueish = new float[] {0.1f, 0.2f, 0.5f};
private static float[] redish = new float[] {0.5f, 0.2f, 0.1f};
+ private static float[] alice = new float[] {0.94f, 0.97f, 1};
+ private static float[] cornflower = new float[] {100f / 255, 149f / 255, 237f / 255};
+
private static byte[] highlight = new byte[128];
***************
*** 179,183 ****
Vertex n = current.normal();
gl.glNormal3d(n.getX(), n.getY(), n.getZ());
! if (front.isConstructionSpace()) {
gl.glColor3fv(Defaults.getFrontColor(), 0);
} else {
--- 182,188 ----
Vertex n = current.normal();
gl.glNormal3d(n.getX(), n.getY(), n.getZ());
! if (front.isVoid()) {
! gl.glColor3fv(cornflower, 0);
! } else if (front.isConstructionSpace()) {
gl.glColor3fv(Defaults.getFrontColor(), 0);
} else {
***************
*** 192,196 ****
Vertex n = current.normal();
gl.glNormal3d(-n.getX(), -n.getY(), -n.getZ());
! if (back.isConstructionSpace()) {
gl.glColor3fv(Defaults.getFrontColor(), 0);
} else {
--- 197,203 ----
Vertex n = current.normal();
gl.glNormal3d(-n.getX(), -n.getY(), -n.getZ());
! if (back.isVoid()) {
! gl.glColor3fv(cornflower, 0);
! } else if (back.isConstructionSpace()) {
gl.glColor3fv(Defaults.getFrontColor(), 0);
} else {
***************
*** 305,309 ****
Space back = surface.getBackDomain();
if (front == back) {
! return true;
}
if (transparent(front) && transparent(back)) {
--- 312,318 ----
Space back = surface.getBackDomain();
if (front == back) {
! if (front.isContainer()) {
! return true;
! }
}
if (transparent(front) && transparent(back)) {
|