Skip to main content

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§

SK3DNodemacOS and objc2-app-kit and SK3DNode and SKNode
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
SKAudioNodemacOS and objc2-app-kit and SKAudioNode and SKNode
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.
SKCameraNodemacOS and objc2-app-kit and SKCameraNode and SKNode
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
SKCropNodemacOS and objc2-app-kit and SKCropNode and SKNode
A SpriteKit node that masks child nodes using another node’s alpha component
SKEffectNodemacOS and objc2-app-kit and SKEffectNode and SKNode
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.
SKEmitterNodemacOS and objc2-app-kit and SKEmitterNode and SKNode
An emitter of particle sprites.
SKFieldNodemacOS and objc2-app-kit and SKFieldNode and SKNode
Apple’s documentation
SKInterpolationModeSKKeyframeSequence
Apple’s documentation
SKKeyframeSequenceSKKeyframeSequence
Apple’s documentation
SKLabelHorizontalAlignmentModeSKLabelNode
Apple’s documentation
SKLabelNodemacOS and objc2-app-kit and SKLabelNode and SKNode
A node that displays a text label with a given font.
SKLabelVerticalAlignmentModeSKLabelNode
Apple’s documentation
SKLightNodemacOS and objc2-app-kit and SKLightNode and SKNode
Apple’s documentation
SKMutableTextureSKMutableTexture and SKTexture
Apple’s documentation
SKNodemacOS and objc2-app-kit and SKNode
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
SKReferenceNodemacOS and objc2-app-kit and SKNode and SKReferenceNode
Apple’s documentation
SKRegionSKRegion
Apple’s documentation
SKRendererSKRenderer
A renderer for displaying a SpriteKit scene in an existing Metal workflow.
SKRepeatModeSKKeyframeSequence
Apple’s documentation
SKScenemacOS and objc2-app-kit and SKEffectNode and SKNode and SKScene
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
SKShapeNodemacOS and objc2-app-kit and SKNode and SKShapeNode
A SpriteKit Node used to stroke or fill a shape. CGPaths are used to supply the path.
SKSpriteNodemacOS and objc2-app-kit and SKNode and SKSpriteNode
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.
SKTileMapNodemacOS and objc2-app-kit and SKNode and SKTileMapNode
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.
SKTransformNodemacOS and objc2-app-kit and SKNode and SKTransformNode
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
SKVideoNodemacOS and objc2-app-kit and SKNode and SKVideoNode
Apple’s documentation
SKViewmacOS and objc2-app-kit and SKView
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§

SKActionTimingFunctionblock2 and SKAction
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.