* originX, originY. */
public void draw (TextureRegion region, float x, float y, float originX, float originY, float width, float height,
float scaleX, float scaleY, float rotation, boolean clockwise) {
if (!drawing) throw new IllegalStateException("SpriteBatch.begin must be called before draw.");
Texture texture = region.texture;
if (texture != lastTexture) {
renderMesh();
lastTexture = texture;
invTexWidth = 1f / texture.getWidth();
invTexHeight = 1f / texture.getHeight();
} else if (idx == vertices.length) //
renderMesh();
// bottom left and top right corner points relative to origin
final float worldOriginX = x + originX;