SkeletonClipping

spine.utils.SkeletonClipping (Class)

Spine Runtimes License Agreement Last updated January 1, 2020. Replaces all prior versions.

Copyright (c) 2013-2020, Esoteric Software LLC

Integration of the Spine Runtimes into software or otherwise creating derivative works of the Spine Runtimes is permitted under the terms and conditions of Section 2 of the Spine Editor License Agreement: http://esotericsoftware.com/spine-editor-license

Otherwise, it is permitted to integrate the Spine Runtimes into software or otherwise create derivative works of the Spine Runtimes (collectively, "Products"), provided that each user of the Products must obtain their own Spine Editor license and redistribution of the Products in any form must include this license and copyright notice.

THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Static Members

spine
makeClockwise(polygon: spine.support.utils.FloatArray): Void
Name Type
polygon spine.support.utils.FloatArray

Instance Members

Name Type
slot spine.Slot
clip spine.attachments.ClippingAttachment

spine
clipEndWithSlot(slot: spine.Slot): Void
Name Type
slot spine.Slot

spine
clipEnd(): Void

spine
isClipping(): Bool
Returns
Bool

spine
clipTriangles(vertices: spine.support.utils.FloatArray, verticesLength: Int, triangles: spine.support.utils.ShortArray, trianglesLength: Int, uvs: spine.support.utils.FloatArray, light: Float, dark: Float, twoColor: Bool): Void
Name Type
vertices spine.support.utils.FloatArray
verticesLength Int
triangles spine.support.utils.ShortArray
trianglesLength Int
uvs spine.support.utils.FloatArray
light Float
dark Float
twoColor Bool

spine
clip(x1: Float, y1: Float, x2: Float, y2: Float, x3: Float, y3: Float, clippingArea: spine.support.utils.FloatArray, output: spine.support.utils.FloatArray): Bool

Clips the input triangle against the convex, clockwise clipping area. If the triangle lies entirely within the clipping area, false is returned. The clipping area must duplicate the first vertex at the end of the vertices list.

Name Type
x1 Float
y1 Float
x2 Float
y2 Float
x3 Float
y3 Float
clippingArea spine.support.utils.FloatArray
output spine.support.utils.FloatArray
Returns
Bool

spine
getClippedVertices(): spine.support.utils.FloatArray
Returns
spine.support.utils.FloatArray

spine
getClippedTriangles(): spine.support.utils.ShortArray
Returns
spine.support.utils.ShortArray

spine
new(): Void

Private Members

spine
triangulator: Triangulator

spine
clippingPolygon: spine.support.utils.FloatArray


spine
clippedVertices: spine.support.utils.FloatArray

spine
clippedTriangles: spine.support.utils.ShortArray



spine
clippingPolygons: spine.support.utils.FloatArray2D