/[gzz]/gzz/gzz/vob/vobs/SimpleConnection.java
ViewVC logotype

Diff of /gzz/gzz/vob/vobs/SimpleConnection.java

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

revision 1.4 by tjl, Thu Dec 5 10:57:34 2002 UTC revision 1.5 by tjl, Sun Jan 12 11:41:47 2003 UTC
# Line 72  public static final String rcsid = "$Id$ Line 72  public static final String rcsid = "$Id$
72          g.drawLine(pt0.x, pt0.y, pt1.x, pt1.y);          g.drawLine(pt0.x, pt0.y, pt1.x, pt1.y);
73      }      }
74    
75      static Vob line;      Vob line;
76      public int addToListGL(GraphicsAPI.RenderingSurface win,  
77                          int[] list, int curs, int coordsys1,      public int putGL(VobScene vs, int coordsys1, int coordsys2) {
78                                  int coordsys2) {          if(line == null && color != null)
         if(color != null)  
79              line = GLRen.createLineConnector(x0, y0, x1, y1, 1, 1,              line = GLRen.createLineConnector(x0, y0, x1, y1, 1, 1,
80                                               color.getRed()/255f,                                               color.getRed()/255f,
81                                               color.getGreen()/255f,                                               color.getGreen()/255f,
# Line 84  public static final String rcsid = "$Id$ Line 83  public static final String rcsid = "$Id$
83                                               1);                                               1);
84          else line = GLRen.createLineConnector(x0, y0, x1, y1, 1, 1,          else line = GLRen.createLineConnector(x0, y0, x1, y1, 1, 1,
85                                                -1, -1, -1, -1);                                                -1, -1, -1, -1);
86          curs = line.addToListGL(win, list, curs, coordsys1, coordsys2);          vs.map.put(line, coordsys1, coordsys2);
87          return curs;          return 0;
88      }      }
89  }  }
90    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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