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 |
} |
} |