/[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.24 by tjl, Wed Sep 4 13:07:52 2002 UTC revision 1.25 by tjl, Mon Sep 23 08:24:26 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;      static GL.DisplayList list;
81      static Vob triangle;      static Vob triangle;
82    
83      GZZGL.PaperQuad getPaperQuad(Cell c) {      GLRen.PaperQuad getPaperQuad(Cell c) {
84          GZZGL.PaperQuad ret = (GZZGL.PaperQuad)papers.get(c);          GLRen.PaperQuad ret = (GLRen.PaperQuad)papers.get(c);
85          if(ret == null) {          if(ret == null) {
86              Paper  pap;              Paper  pap;
87              GZZGL.PaperQuad pq;              GLRen.PaperQuad pq;
88              pap = PaperMill.getInstance().getPaper(c.hashCode());              pap = PaperMill.getInstance().getPaper(c.hashCode());
89              ret = GZZGL.createPaperQuad(pap, -1, -1, 1, 1, 100);              ret = GLRen.createPaperQuad(pap, -1, -1, 1, 1, 100);
90              papers.put(c, ret);              papers.put(c, ret);
91    
92              list = GZZGL.createDisplayList(              list = GL.createDisplayList(
93                      "Disable TEXTURE_2D\nColor 1 0 0 1\nBegin TRIANGLES\nVertex -1 -1\n" +                      "Disable TEXTURE_2D\nColor 1 0 0 1\nBegin TRIANGLES\nVertex -1 -1\n" +
94                      "Vertex 1 -1\nVertex 1 1\nEnd\n"                      "Vertex 1 -1\nVertex 1 1\nEnd\n"
95                  );                  );
# Line 104  public static final String rcsid = "$Id$ Line 104  public static final String rcsid = "$Id$
104                      int[] list, int curs, int coordsys1,                      int[] list, int curs, int coordsys1,
105                      int coordsys2) {                      int coordsys2) {
106    
107          GZZGL.PaperQuad pq = getPaperQuad(papercode);          GLRen.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);          // curs = triangle.addToListGL(win, list, curs, coordsys1, -1);
110          return curs;          return curs;

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

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