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