if(c == null) c = color;
gl.glColor4f(c.x, c.y, c.z, c.w);
float texX = coords.left() + (coords.right() - coords.left()) / joglImage.texture.getImageWidth() * tc1.x;
float texY = coords.top() + (coords.bottom() - coords.top()) / joglImage.texture.getImageHeight() * tc1.y;
gl.glTexCoord2f(texX, texY);
gl.glVertex2f(p.x, p.y);
p = t.getPoint(1);
c = t.getColor(1);
if(c == null) c = color;
gl.glColor4f(c.x, c.y, c.z, c.w);