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

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

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

revision 1.4 by humppake, Mon Nov 25 16:03:40 2002 UTC revision 1.5 by humppake, Wed Nov 27 16:35:41 2002 UTC
# Line 73  public static final String rcsid = "$Id$ Line 73  public static final String rcsid = "$Id$
73                          int[] list, int curs, int coordsys1,                          int[] list, int curs, int coordsys1,
74                                  int coordsys2) {                                  int coordsys2) {
75          if(dlist == null)          if(dlist == null)
76              if(color != null)              dlist = GLCache.getCallListBoxCoorded(
77                  dlist = GLRen.createLine(x0, y0, x1, y1,                      "PushAttrib CURRENT_BIT ENABLE_BIT\nColor "+ColorUtil.colorGLString(color)+"\n"+
78                                          color.getRed()/255f,                      "Disable TEXTURE_2D\nBegin LINE_STRIP\nVertex "+x0+" "+y0+
79                                          color.getGreen()/255f,                      "\nVertex "+x1+" "+y1+"\nEnd\nPopAttrib\n");
80                                          color.getBlue()/255f, 1);          
             else  
                 dlist = GLRen.createLine(x0, y0, x1, y1, -1, -1, -1, -1);  
   
         /*  
           dlist = GLCache.getCallListCoorded(  
           "PushAttrib CURRENT_BIT\nColor "+ColorUtil.colorGLString(color)+"\n"+  
           "Begin LINE_STRIP\nVertex "+x0+" "+y0+  
           "\nVertex "+x1+" "+y1+"\nEnd\nPopAttrib\n");  
         */  
81          curs = dlist.addToListGL(win, list, curs, coordsys1, coordsys2);          curs = dlist.addToListGL(win, list, curs, coordsys1, coordsys2);
82          return curs;          return curs;
83      }      }

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