Crate objc2_sprite_kit

Crate objc2_sprite_kit 

Source
Expand description

§Bindings to the SpriteKit framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

SK3DNodeSK3DNode and SKNode and objc2-app-kit and macOS
Apple’s documentation
SKActionSKAction
An SKAction object is an action that is executed by a node in the scene. Actions are most often used to change the structure and content of the node to which they are attached, but can also make other changes to the scene. When the scene processes its nodes, actions associated with those nodes are evaluated.
SKActionTimingModeSKAction
Adjust the timing of an action
SKAttributeSKAttribute
Apple’s documentation
SKAttributeTypeSKAttribute
Apple’s documentation
SKAttributeValueSKAttribute
Apple’s documentation
SKAudioNodeSKAudioNode and SKNode and objc2-app-kit and macOS
A SpriteKit scene graph audio node that provides a way to link audio graphs to a SpriteKit scene. The currently presented scene is responsible for mixing the audio from nodes in the scene.
SKBlendModeSKNode
Blend modes that the SKNode uses to compose with the framebuffer to produce blended colors.
SKCameraNodeSKCameraNode and SKNode and objc2-app-kit and macOS
A Camera node is a full fledged SKNode that can have actions and physics applied to it. It also uses the standard SKNode transform system so modifying the camera node’s position is how you translate the camera’s viewport. Applying a scale to the node would zoom the viewport in or out etc. As an added benefit you can now rotate the viewport by applying a zRotation to the camera node, just as you would with any other SKNode.
SKConstraintSKConstraint
SKConstraints are evaluated each frame after actions and physics. The node’s transform will be changed to staisfy the constarint
SKCropNodeSKCropNode and SKNode and objc2-app-kit and macOS
A SpriteKit node that masks child nodes using another node’s alpha component
SKEffectNodeSKEffectNode and SKNode and objc2-app-kit and macOS
A SpriteKit node that applies frame buffer effects to the rendered results of its child nodes. This is done continuously on live content and is not a simple snapshot of the rendered result at one instant of time.
SKEmitterNodeSKEmitterNode and SKNode and objc2-app-kit and macOS
An emitter of particle sprites.
SKFieldNodeSKFieldNode and SKNode and objc2-app-kit and macOS
Apple’s documentation
SKInterpolationModeSKKeyframeSequence
Apple’s documentation
SKKeyframeSequenceSKKeyframeSequence
Apple’s documentation
SKLabelHorizontalAlignmentModeSKLabelNode
Apple’s documentation
SKLabelNodeSKLabelNode and SKNode and objc2-app-kit and macOS
A node that displays a text label with a given font.
SKLabelVerticalAlignmentModeSKLabelNode
Apple’s documentation
SKLightNodeSKLightNode and SKNode and objc2-app-kit and macOS
Apple’s documentation
SKMutableTextureSKMutableTexture and SKTexture
Apple’s documentation
SKNodeSKNode and objc2-app-kit and macOS
Apple’s documentation
SKNodeFocusBehaviorSKNode
Apple’s documentation
SKParticleRenderOrderSKEmitterNode
Apple’s documentation
SKPhysicsBodySKPhysicsBody
A SpriteKit physics body. These are the physical representations of your nodes. These specify the area and mass and any collision masking needed.
SKPhysicsContactSKPhysicsContact
Apple’s documentation
SKPhysicsJointSKPhysicsJoint
Apple’s documentation
SKPhysicsJointFixedSKPhysicsJoint
Apple’s documentation
SKPhysicsJointLimitSKPhysicsJoint
Apple’s documentation
SKPhysicsJointPinSKPhysicsJoint
Apple’s documentation
SKPhysicsJointSlidingSKPhysicsJoint
Apple’s documentation
SKPhysicsJointSpringSKPhysicsJoint
Apple’s documentation
SKPhysicsWorldSKPhysicsWorld
Apple’s documentation
SKRangeSKConstraint
SKRange object used to define a range of allowable values
SKReachConstraintsSKReachConstraints
Apple’s documentation
SKReferenceNodeSKNode and SKReferenceNode and objc2-app-kit and macOS
Apple’s documentation
SKRegionSKRegion
Apple’s documentation
SKRendererSKRenderer
A renderer for displaying a SpriteKit scene in an existing Metal workflow.
SKRepeatModeSKKeyframeSequence
Apple’s documentation
SKSceneSKEffectNode and SKNode and SKScene and objc2-app-kit and macOS
A scene is the root node of your content. It is used to display SpriteKit content on an SKView.
SKSceneScaleModeSKScene
Apple’s documentation
SKShaderSKShader
Apple’s documentation
SKShapeNodeSKNode and SKShapeNode and objc2-app-kit and macOS
A SpriteKit Node used to stroke or fill a shape. CGPaths are used to supply the path.
SKSpriteNodeSKNode and SKSpriteNode and objc2-app-kit and macOS
A Sprite is a textured 2D node. It can be placed, rotated, scaled and animated like any other node except it draws a textured rectangle specified by the bounds and anchor point.
SKTextureSKTexture
A texture to be mapped onto SKSpriteNode instances.
SKTextureAtlasSKTextureAtlas
Apple’s documentation
SKTextureFilteringModeSKTexture
Apple’s documentation
SKTileAdjacencyMaskSKTileSet
The adjacency mask is used to specify which neighboring tiles need to be filled in for a rule to go into effect.
SKTileDefinitionSKTileDefinition
A tile definition contains the information needed to represent a single type of tile within a tile map.
SKTileDefinitionRotationSKTileDefinition
Adjust the rotation of the tile definition image, in 90 degree increments.
SKTileGroupSKTileSet
A tile group encapsulates a collection of related tile definitions that are designed to be pieced together within a tile map. How those tiles are pieced together is governed by the set of rules. When a tile group is placed in a tile map, the map evaluates the rules to determine which tiles should be placed to achieve the desired outcome.
SKTileGroupRuleSKTileSet
A tile group rule defines how a certain type of tile should be placed on the map. These tiles are like puzzle pieces, and the rules define how they should be pieced together. This is accomplished by defining which neighboring spaces need to be filled with tiles that belong to the same group, and which tiles are required to be empty. The required pattern of neighboring tiles is defined using the SKTileAdjacencyMask.
SKTileMapNodeSKNode and SKTileMapNode and objc2-app-kit and macOS
A SpriteKit node used to render a 2D array of textured sprites. Uses SKTileSet to determine what textures it can use to render. Separate tile map nodes can be layered on top of one another to achieve various effects, such as parallax scrolling.
SKTileSetSKTileSet
A tile set contains all of the tile definitions that are available for use in a tile map. In addition, it also contains tile groups, which define collections of related tile definitions and the rules that govern their placement.
SKTileSetTypeSKTileSet
The tile set type is used to describe how the tiles will be arranged in a tile map.
SKTransformNodeSKNode and SKTransformNode and objc2-app-kit and macOS
An SKTransformNode can be applied a 3D rotation that will affect the visual aspect of its children. The physics and constraints of the children will behave as if none of them were transformed.
SKTransitionSKTransition
A transition style from one scene to another.
SKTransitionDirectionSKTransition
Apple’s documentation
SKUniformSKUniform
Apple’s documentation
SKUniformTypeSKUniform
Apple’s documentation
SKVideoNodeSKNode and SKVideoNode and objc2-app-kit and macOS
Apple’s documentation
SKViewSKView and objc2-app-kit and macOS
Apple’s documentation
SKWarpGeometrySKWarpGeometry
Apple’s documentation
SKWarpGeometryGridSKWarpGeometry
Apple’s documentation

Constants§

SK_VERSIONSKVersion
Apple’s documentation

Traits§

NSEventSKNodeEventSKNode
Category “SKNodeEvent” on NSEvent.
SKPhysicsContactDelegateSKPhysicsWorld
Apple’s documentation
SKSceneDelegateSKScene
Apple’s documentation
SKViewDelegateSKView
Apple’s documentation
SKWarpableSKWarpGeometry
Apple’s documentation

Type Aliases§

SKActionTimingFunctionSKAction and block2
A custom timing function for SKActions. Input time will be linear 0.0-1.0 over the duration of the action. Return values must be 0.0-1.0 and increasing and the function must return 1.0 when the input time reaches 1.0.