60 |
|
|
61 |
// GL implementation |
// GL implementation |
62 |
// ================= |
// ================= |
63 |
|
static float[] tmp_floats = new float[3]; |
64 |
public int addToListGL(gzz.client.GraphicsAPI.RenderingSurface win, |
public int addToListGL(gzz.client.GraphicsAPI.RenderingSurface win, |
65 |
int[] list, int curs, int coordsys1, |
int[] list, int curs, int coordsys1, |
66 |
int coordsys2) { |
int coordsys2) { |
67 |
if (needInit) loadTex(); |
if (needInit) loadTex(); |
68 |
|
|
69 |
float [] tmp_floats = new float[3]; |
ColorUtil.getRGBColorComponents(color, tmp_floats); |
70 |
|
|
71 |
GLRen.ContinuousLine cl = |
GLRen.ContinuousLine cl = |
72 |
GLRen.createContinuousLine(tex.getTexId(), width, points, |
GLRen.createContinuousLine(tex.getTexId(), width, points, |
73 |
color.getComponents(tmp_floats)); |
tmp_floats); |
74 |
return cl.addToListGL(win, list, curs, coordsys1, coordsys2); |
return cl.addToListGL(win, list, curs, coordsys1, coordsys2); |
75 |
} |
} |
76 |
} |
} |