gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] gzz/gzz/view CellVobFactory.java


From: Benja Fallenstein
Subject: [Gzz-commits] gzz/gzz/view CellVobFactory.java
Date: Fri, 13 Sep 2002 08:20:18 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Benja Fallenstein <address@hidden>      02/09/13 08:20:18

Modified files:
        gzz/view       : CellVobFactory.java 

Log message:
        Tried stenciling in CellVobFactory (for clipping), but doesn't work.
        
        PLEASE look at this and help\!\!

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/CellVobFactory.java.diff?tr1=1.4&tr2=1.5&r1=text&r2=text

Patches:
Index: gzz/gzz/view/CellVobFactory.java
diff -c gzz/gzz/view/CellVobFactory.java:1.4 
gzz/gzz/view/CellVobFactory.java:1.5
*** gzz/gzz/view/CellVobFactory.java:1.4        Sun Aug 25 17:20:26 2002
--- gzz/gzz/view/CellVobFactory.java    Fri Sep 13 08:20:18 2002
***************
*** 46,52 ****
   */
  
  public class CellVobFactory {
! public static final String rcsid = "$Id: CellVobFactory.java,v 1.4 2002/08/25 
21:20:26 benja Exp $";
      public static boolean dbg = false;
      private static void p(String s) { if(dbg) pa(s); }
      private static void pa(String s) { System.err.println(s); }
--- 46,52 ----
   */
  
  public class CellVobFactory {
! public static final String rcsid = "$Id: CellVobFactory.java,v 1.5 2002/09/13 
12:20:18 benja Exp $";
      public static boolean dbg = false;
      private static void p(String s) { if(dbg) pa(s); }
      private static void pa(String s) { System.err.println(s); }
***************
*** 120,131 ****
       * @param v The vobscene to add to
       * @param cs The coordinate system index
       */
!     public void addCellVobs(Cell c, VobScene v, int cs, Vob content,
!                             ViewContext context, float scale) {
        if(d_clone == null)
            throw new NullPointerException("clone dim not set in 
CellVobFactory");
  
!       RectBgVob bg = new RectBgVob();
  
        List cursorColors = context.getCursorColors(c);
        if(cursorColors != null)
--- 120,131 ----
       * @param v The vobscene to add to
       * @param cs The coordinate system index
       */
!     public void addCellVobs(final Cell c, final VobScene v, int cs, final Vob 
content,
!                             final ViewContext context, final float scale) {
        if(d_clone == null)
            throw new NullPointerException("clone dim not set in 
CellVobFactory");
  
!       final RectBgVob bg = new RectBgVob();
  
        List cursorColors = context.getCursorColors(c);
        if(cursorColors != null)
***************
*** 161,172 ****
  
        Vob.RenderInfo info = v.coords.getRenderInfo(cs);
        info.getExtRect(rect);
!       int content_cs = v.coords.coordsys(cs, CONTENT_KEY, 0, 5, 5,
                                           rect.width-10, rect.height-10);
  
!       if(content != null)
!           v.map.put(content, content_cs);
!       else
!           ccv.place(c, v, content_cs, context, scale);
      }
  }
--- 161,183 ----
  
        Vob.RenderInfo info = v.coords.getRenderInfo(cs);
        info.getExtRect(rect);
!       final int content_cs = v.coords.coordsys(cs, CONTENT_KEY, 0, 5, 5,
                                           rect.width-10, rect.height-10);
  
!       gzz.gfx.gl.Stencil.drawStenciled(
!           v,
!           new Runnable() { public void run() {
!                 v.map.put(bg, content_cs);
!           }},
!           null,
!           null,
!           new Runnable() { public void run() {
!               if(content != null)
!                   v.map.put(content, content_cs);
!               else
!                   ccv.place(c, v, content_cs, context, scale);
!           }},
!           false
!       );
      }
  }




reply via email to

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