/[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.29 by tjl, Sat Oct 19 14:43:38 2002 UTC revision 1.30 by tjl, Sun Nov 3 18:28:16 2002 UTC
# Line 44  public static final String rcsid = "$Id$ Line 44  public static final String rcsid = "$Id$
44      Color bgcolor;      Color bgcolor;
45    
46      Cell papercode;      Cell papercode;
47    
48        GLRen.PaperQuad pq;
49            
50      public static BgVob create(Cell cell) {      public static BgVob create(Cell cell, GraphicsAPI.Window w) {
51          return new BgVob(cell);          return new BgVob(cell, w);
52      }      }
53            
54      public BgVob(Cell cell) {      public BgVob(Cell cell, GraphicsAPI.Window w) {
55    
56          papercode = cell;          papercode = cell;
57                    pq = getPaperQuad(papercode, w);
58      }      }
59      static Rectangle rect = new Rectangle();      static Rectangle rect = new Rectangle();
60      static Rectangle rect2 = new Rectangle();      static Rectangle rect2 = new Rectangle();
# Line 78  public static final String rcsid = "$Id$ Line 80  public static final String rcsid = "$Id$
80      static GL.DisplayList list;      static GL.DisplayList list;
81      static Vob triangle;      static Vob triangle;
82    
83      GLRen.PaperQuad getPaperQuad(Cell c) {      GLRen.PaperQuad getPaperQuad(Cell c, GraphicsAPI.Window win) {
84          GLRen.PaperQuad ret = (GLRen.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              GLRen.PaperQuad pq;              GLRen.PaperQuad pq;
88              pap = PaperMill.getInstance().getPaper(c.hashCode());              pap = PaperMill.getInstance().getOptimizedPaper(c.hashCode(), win);
89              ret = GLRen.createPaperQuad(pap, 0, 0, 1, 1, 0);              ret = GLRen.createPaperQuad(pap, 0, 0, 1, 1, 0, GLRen.PAPERQUAD_CS2_TO_SCREEN);
90              papers.put(c, ret);              papers.put(c, ret);
91    
92              list = GL.createDisplayList(              list = GL.createDisplayList(
# Line 102  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    
         GLRen.PaperQuad pq = getPaperQuad(papercode);  
107          curs = pq.addToListGL(win, list, curs, coordsys1, coordsys2);          curs = pq.addToListGL(win, list, curs, coordsys1, coordsys2);
108          // curs = triangle.addToListGL(win, list, curs, coordsys1, -1);          // curs = triangle.addToListGL(win, list, curs, coordsys1, -1);
109          return curs;          return curs;

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

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