/[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.5 by humppake, Wed Mar 5 10:34:28 2003 UTC revision 1.6 by humppake, Wed Mar 5 12:57:40 2003 UTC
# Line 96  public static final String rcsid = "$Id$ Line 96  public static final String rcsid = "$Id$
96          g.setColor(oldfg);          g.setColor(oldfg);
97      }      }
98    
99      public int putGL(VobScene vs, int coordsys1) {      public int putGL(final VobScene vs, final int coordsys1) {
100          if(dbg) pa("Addtolistgl coloredsectorvob "+coordsys1);          if(dbg) pa("Addtolistgl coloredsectorvob "+coordsys1);
101          if(glList == null) {          if(glList == null) {
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) {              if(nsolids > 0) {
                 // Enable Stencil here  
106                  bgcall += glSolidsString();                  bgcall += glSolidsString();
                 // Disable Stencil here  
107              } else bgcall += glBgString();              } else bgcall += glBgString();
108              if(drawBorder) bgcall += glBorderString();              if(drawBorder) bgcall += glBorderString();
109                                            
# Line 116  public static final String rcsid = "$Id$ Line 114  public static final String rcsid = "$Id$
114                  "PopAttrib\n"                  "PopAttrib\n"
115                  );                  );
116          }          }
117          vs.map.put(glList, coordsys1);  
118            final RectBgVob stencil = new RectBgVob();
119            gzz.gfx.gl.Stencil.drawStenciled(
120               vs,
121               new Runnable() { public void run() {
122                   vs.map.put(stencil, coordsys1);
123               }},
124               null,
125               null,
126               new Runnable() { public void run() {
127                   vs.map.put(glList, coordsys1);
128               }},
129               false
130            );
131          return 0;          return 0;
132      }      }
133            
# Line 145  public static final String rcsid = "$Id$ Line 156  public static final String rcsid = "$Id$
156                       );                       );
157          return glString;          return glString;
158      }      }
   
   
159  }  }
160    
161    

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

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