Draw a skin sprite with curved edge.
|n||Number of segments|
|p||P of control point on right edge|
|q||Q of control point on right edge|
Points are in the order of bottom-left, top-left, top-right, bottom-right.
Control point is calculated by bilinear interpolation using
q, where bottom-left point is at
(-1, -1) and top-right point is at
A Bézier curve is drawn on the curved edge with respective vertexes and control point.
Curved edges are drawn in segments. The bigger the number of segments, the smoother the curve, and the costlier the drawing.