- imm.texcoord(u[j2], v[i2]);
- imm.vertex(x[j], y[i]);
- imm.texcoord(u[j2+1], v[i2]);
- imm.vertex(x[j+1], y[i]);
- imm.texcoord(u[j2+1], v[i2+1]);
- imm.vertex(x[j+1], y[i+1]);
- imm.texcoord(u[j2], v[i2+1]);
- imm.vertex(x[j], y[i+1]);
+ if(j==xmin || (j>1 && j<x.size()-2))
+ {
+ if(j>xmin)
+ bld.end();
+ bld.begin(GL::TRIANGLE_STRIP);
+ bld.texcoord(u[j2], v[i2+1]);
+ bld.vertex(x[j], y[i+1]);
+ bld.texcoord(u[j2], v[i2]);
+ bld.vertex(x[j], y[i]);
+ }
+ bld.texcoord(u[j2+1], v[i2+1]);
+ bld.vertex(x[j+1], y[i+1]);
+ bld.texcoord(u[j2+1], v[i2]);
+ bld.vertex(x[j+1], y[i]);