shearTexture

fun shearTexture(key: String, nKey: String, x: Int, y: Int, w: Int, h: Int)

According to the given rectangular range, it will cut out another texture from one texture, and the texture to be cut is given by its key; the key of the new texture is the parameter nKey.

Parameters

key

the key of the texture which will be shea red

nKey

the new key of the new texture

x

the x coordinate of the shear beginning point

y

the y coordinate of the shear beginning point

w

the width of the shear area

h

the height of the shear area