- final TexturedPolygon texturedPolygon2 = new TexturedPolygon(topLeft,
- bottomLeft, bottomRight, textureTopLeft, textureBottomLeft,
- textureBottomRight, texture);
+ final TexturedPolygon texturedPolygon2 = new TexturedPolygon(
+ new Vertex(topLeft, textureTopLeft),
+ new Vertex(bottomLeft, textureBottomLeft),
+ new Vertex(bottomRight, textureBottomRight), texture);