/[gzz]/gzz/gzz/vob/vobs/ColoredSquareSectorVob.java
ViewVC logotype

Diff of /gzz/gzz/vob/vobs/ColoredSquareSectorVob.java

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

revision 1.4 by humppake, Wed Mar 5 09:37:29 2003 UTC revision 1.5 by humppake, Wed Mar 5 10:34:28 2003 UTC
# Line 102  public static final String rcsid = "$Id$ Line 102  public static final String rcsid = "$Id$
102              if (!circleGLReady) prepareCircleGL((float)Math.sqrt(50)/10);              if (!circleGLReady) prepareCircleGL((float)Math.sqrt(50)/10);
103    
104              String bgcall = "";              String bgcall = "";
105              if(nsolids > 0) bgcall += glSolidsString();              if(nsolids > 0) {
106              else bgcall += glBgString();                  // Enable Stencil here
107                    bgcall += glSolidsString();
108                    // Disable Stencil here
109                } else bgcall += glBgString();
110              if(drawBorder) bgcall += glBorderString();              if(drawBorder) bgcall += glBorderString();
111                                            
112              glList = GLRen.createCallListBoxCoorded(              glList = GLRen.createCallListBoxCoorded(
# Line 116  public static final String rcsid = "$Id$ Line 119  public static final String rcsid = "$Id$
119          vs.map.put(glList, coordsys1);          vs.map.put(glList, coordsys1);
120          return 0;          return 0;
121      }      }
122        
123        protected String glBgString() {
124            String glString = "";
125            glString += (
126                         "Color "+ColorUtil.colorGLString(bg)+" 1\n" +
127                         "Begin QUAD_STRIP\n"+
128                         "Vertex 1 1\nVertex 1 0\n"+
129                         "Vertex 0 1\nVertex 0 0\n"+
130                         "End\n");
131            return glString;
132        }
133    
134        protected String glBorderString() {
135            String glString = "";
136            glString += (
137                         "Color 0 0 0 1\n"+
138                         "Begin LINE_STRIP\n"+
139                         "Vertex 1 1\n"+
140                         "Vertex 1 0\n"+
141                         "Vertex 0 0\n"+
142                         "Vertex 0 1\n"+
143                         "Vertex 1 1\n"+
144                         "End\n"
145                         );
146            return glString;
147        }
148    
149    
150  }  }
151    
152    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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