gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gzz/vob/vobs ColoredSquareSectorVob.java


From: Asko Soukka
Subject: [Gzz-commits] gzz/gzz/vob/vobs ColoredSquareSectorVob.java
Date: Wed, 05 Mar 2003 07:57:40 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Asko Soukka <address@hidden>    03/03/05 07:57:40

Modified files:
        gzz/vob/vobs   : ColoredSquareSectorVob.java 

Log message:
        OpenGL impl

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/vob/vobs/ColoredSquareSectorVob.java.diff?tr1=1.5&tr2=1.6&r1=text&r2=text

Patches:
Index: gzz/gzz/vob/vobs/ColoredSquareSectorVob.java
diff -u gzz/gzz/vob/vobs/ColoredSquareSectorVob.java:1.5 
gzz/gzz/vob/vobs/ColoredSquareSectorVob.java:1.6
--- gzz/gzz/vob/vobs/ColoredSquareSectorVob.java:1.5    Wed Mar  5 05:34:28 2003
+++ gzz/gzz/vob/vobs/ColoredSquareSectorVob.java        Wed Mar  5 07:57:40 2003
@@ -45,7 +45,7 @@
  */
 
 public class ColoredSquareSectorVob extends ColoredSectorVob {
-public static final String rcsid = "$Id: ColoredSquareSectorVob.java,v 1.5 
2003/03/05 10:34:28 humppake Exp $";
+public static final String rcsid = "$Id: ColoredSquareSectorVob.java,v 1.6 
2003/03/05 12:57:40 humppake Exp $";
 
     public ColoredSquareSectorVob() {
        super(90, 360, 10);
@@ -96,16 +96,14 @@
        g.setColor(oldfg);
     }
 
-    public int putGL(VobScene vs, int coordsys1) {
+    public int putGL(final VobScene vs, final int coordsys1) {
         if(dbg) pa("Addtolistgl coloredsectorvob "+coordsys1);
        if(glList == null) {
            if (!circleGLReady) prepareCircleGL((float)Math.sqrt(50)/10);
 
            String bgcall = "";
            if(nsolids > 0) {
-               // Enable Stencil here
                bgcall += glSolidsString();
-               // Disable Stencil here
            } else bgcall += glBgString();
            if(drawBorder) bgcall += glBorderString();
                    
@@ -116,7 +114,20 @@
                "PopAttrib\n"
                );
        }
-       vs.map.put(glList, coordsys1);
+
+       final RectBgVob stencil = new RectBgVob();
+       gzz.gfx.gl.Stencil.drawStenciled(
+          vs,
+          new Runnable() { public void run() {
+              vs.map.put(stencil, coordsys1);
+          }},
+          null,
+          null,
+          new Runnable() { public void run() {
+              vs.map.put(glList, coordsys1);
+          }},
+          false
+       );
        return 0;
     }
     
@@ -145,8 +156,6 @@
                     );
        return glString;
     }
-
-
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]