if (region == null) throw new IllegalStateException("Region has not been set: " + this);
return region;
}
public void updateVertices (Slot slot) {
Skeleton skeleton = slot.getSkeleton();
Color skeletonColor = skeleton.getColor();
Color slotColor = slot.getColor();
float color = NumberUtils.intToFloatColor( //
((int)(255 * skeletonColor.a * slotColor.a) << 24) //
| ((int)(255 * skeletonColor.b * slotColor.b) << 16) //
| ((int)(255 * skeletonColor.g * slotColor.g) << 8) //
| ((int)(255 * skeletonColor.r * slotColor.r)));
float[] vertices = this.vertices;
vertices[C1] = color;
vertices[C2] = color;
vertices[C3] = color;
vertices[C4] = color;
float[] offset = this.offset;
Bone bone = slot.getBone();
float x = bone.getWorldX() + skeleton.getX();
float y = bone.getWorldY() + skeleton.getY();
float m00 = bone.getM00();
float m01 = bone.getM01();
float m10 = bone.getM10();
float m11 = bone.getM11();
vertices[X1] = offset[0] * m00 + offset[1] * m01 + x;