/[gzz]/gzz/gzz/vob/RectBgVob.java
ViewVC logotype

Diff of /gzz/gzz/vob/RectBgVob.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by tjl, Mon Sep 23 08:24:26 2002 UTC revision 1.15 by tjl, Mon Oct 14 18:15:19 2002 UTC
# Line 101  public static final String rcsid = "$Id$ Line 101  public static final String rcsid = "$Id$
101          if(glList == null) {          if(glList == null) {
102              String bgcall = "";              String bgcall = "";
103              if(nsolids > 0) {              if(nsolids > 0) {
104                  double w = 2.0 / nsolids;                  double w = 1.0 / nsolids;
105    
106                  for(int i=0; i<nsolids; i++) {                  for(int i=0; i<nsolids; i++) {
107                      double x1 = i*w - 1;                      double x1 = i*w;
108                      double x2 = x1 + w;                      double x2 = x1 + w;
109                      Color c = solids[i];                      Color c = solids[i];
110                      bgcall += (                      bgcall += (
111                          "Color "+ColorUtil.colorGLString(solids[i])+" 1\n"+                          "Color "+ColorUtil.colorGLString(solids[i])+" 1\n"+
112                          "Begin QUAD_STRIP\n"+                          "Begin QUAD_STRIP\n"+
113                          "Vertex "+x1+" 1\n" +                          "Vertex "+x1+" 1\n" +
114                          "Vertex "+x1+" -1\n"+                          "Vertex "+x1+" 0\n"+
115                          "Vertex "+x2+" 1\n"+                          "Vertex "+x2+" 1\n"+
116                          "Vertex "+x2+" -1\n"+                          "Vertex "+x2+" 0\n"+
117                          "End\n");                          "End\n");
118                  }                  }
119              } else {              } else {
120                  bgcall = (                  bgcall = (
121                      "Color "+ColorUtil.colorGLString(bg)+" 1\n" +                      "Color "+ColorUtil.colorGLString(bg)+" 1\n" +
122                      "Begin QUAD_STRIP\n"+                      "Begin QUAD_STRIP\n"+
123                      "Vertex 1 1\nVertex 1 -1\n"+                      "Vertex 1 1\nVertex 1 0\n"+
124                      "Vertex -1 1\nVertex -1 -1\n"+                      "Vertex 0 1\nVertex 0 0\n"+
125                      "End\n");                      "End\n");
126              }              }
127    
# Line 134  public static final String rcsid = "$Id$ Line 134  public static final String rcsid = "$Id$
134                  "Color 0 0 0 1\n"+                  "Color 0 0 0 1\n"+
135                  "Begin LINE_STRIP\n"+                  "Begin LINE_STRIP\n"+
136                  "Vertex 1 1\n"+                  "Vertex 1 1\n"+
137                  "Vertex 1 -1\n"+                  "Vertex 1 0\n"+
138                  "Vertex -1 -1\n"+                  "Vertex 0 0\n"+
139                  "Vertex -1 1\n"+                  "Vertex 0 1\n"+
140                  "Vertex 1 1\n"+                  "Vertex 1 1\n"+
141                  "End\n"+                  "End\n"+
142    

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26