/[gzz]/gzz/gzz/modules/pp/vob/BgVob.java
ViewVC logotype

Diff of /gzz/gzz/modules/pp/vob/BgVob.java

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

revision 1.22 by tjl, Wed Sep 4 06:31:11 2002 UTC revision 1.23 by tjl, Wed Sep 4 12:48:09 2002 UTC
# Line 77  public static final String rcsid = "$Id$ Line 77  public static final String rcsid = "$Id$
77      }      }
78    
79      static HashMap papers = new HashMap();      static HashMap papers = new HashMap();
80        static GZZGL.DisplayList list;
81        static Vob triangle;
82    
83      GZZGL.PaperQuad getPaperQuad(Cell c) {      GZZGL.PaperQuad getPaperQuad(Cell c) {
84          GZZGL.PaperQuad ret = (GZZGL.PaperQuad)papers.get(c);          GZZGL.PaperQuad ret = (GZZGL.PaperQuad)papers.get(c);
# Line 86  public static final String rcsid = "$Id$ Line 88  public static final String rcsid = "$Id$
88              pap = PaperMill.getInstance().getPaper(c.hashCode());              pap = PaperMill.getInstance().getPaper(c.hashCode());
89              ret = GZZGL.createPaperQuad(pap, -1, -1, 1, 1);              ret = GZZGL.createPaperQuad(pap, -1, -1, 1, 1);
90              papers.put(c, ret);              papers.put(c, ret);
91    
92                list = GZZGL.createDisplayList(
93                        "Disable TEXTURE_2D\nColor 1 0 0 1\nBegin TRIANGLES\nVertex -1 -1\n" +
94                        "Vertex 1 -1\nVertex 1 1\nEnd\n"
95                    );
96    
97                triangle = GZZGL.createCallListCoorded(list);
98          }          }
99          return ret;          return ret;
100      }      }
# Line 97  public static final String rcsid = "$Id$ Line 106  public static final String rcsid = "$Id$
106    
107          GZZGL.PaperQuad pq = getPaperQuad(papercode);          GZZGL.PaperQuad pq = getPaperQuad(papercode);
108          curs = pq.addToListGL(win, list, curs, coordsys1, coordsys2);          curs = pq.addToListGL(win, list, curs, coordsys1, coordsys2);
109            curs = triangle.addToListGL(win, list, curs, coordsys1, -1);
110          return curs;          return curs;
111      }      }
112            

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

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