Package apple.spritekit
Class SKRenderer
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.spritekit.SKRenderer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSKRenderer(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static SKRendereralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()booleanignoresSiblingOrder()Ignores sibling and traversal order to sort the rendered contents of a scene into the most efficient batching possible.SKRendererinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()static SKRendererrendererWithDevice(MTLDevice device)Creates a renderer with the specified Metal device.voidrenderWithViewportCommandBufferRenderPassDescriptor(CGRect viewport, MTLCommandBuffer commandBuffer, MTLRenderPassDescriptor renderPassDescriptor)Render the scene content in the specified Metal command buffer.voidrenderWithViewportRenderCommandEncoderRenderPassDescriptorCommandQueue(CGRect viewport, MTLRenderCommandEncoder renderCommandEncoder, MTLRenderPassDescriptor renderPassDescriptor, MTLCommandQueue commandQueue)Render the scene content using a specific Metal command encoder.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)SKScenescene()The currently presented scene, otherwise nil.voidsetIgnoresSiblingOrder(boolean value)Ignores sibling and traversal order to sort the rendered contents of a scene into the most efficient batching possible.voidsetScene(SKScene value)The currently presented scene, otherwise nil.voidsetShouldCullNonVisibleNodes(boolean value)A boolean that indicated whether non-visible nodes should be automatically culled when rendering.voidsetShowsDrawCount(boolean value)Toggles display of performance stats when rendering.voidsetShowsFields(boolean value)voidsetShowsNodeCount(boolean value)voidsetShowsPhysics(boolean value)voidsetShowsQuadCount(boolean value)static voidsetVersion_static(long aVersion)booleanshouldCullNonVisibleNodes()A boolean that indicated whether non-visible nodes should be automatically culled when rendering.booleanshowsDrawCount()Toggles display of performance stats when rendering.booleanshowsFields()booleanshowsNodeCount()booleanshowsPhysics()booleanshowsQuadCount()static org.moe.natj.objc.Classsuperclass_static()voidupdateAtTime(double currentTime)Update the scene at the specified system time.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static SKRenderer alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
ignoresSiblingOrder
public boolean ignoresSiblingOrder()
Ignores sibling and traversal order to sort the rendered contents of a scene into the most efficient batching possible. This will require zPosition to be used in the scenes to properly guarantee elements are in front or behind each other. This defaults to NO, meaning that sibling order overrides efficiency heuristics in the rendering of the scenes in the view. Setting this to YES for a complex scene may substantially increase performance, but care must be taken as only zPosition determines render order before the efficiency heuristics are used.
-
init
public SKRenderer init()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
renderWithViewportCommandBufferRenderPassDescriptor
public void renderWithViewportCommandBufferRenderPassDescriptor(CGRect viewport, MTLCommandBuffer commandBuffer, MTLRenderPassDescriptor renderPassDescriptor)
Render the scene content in the specified Metal command buffer.- Parameters:
viewport- The pixel dimensions in which to render.commandBuffer- The Metal command buffer in which SpriteKit should schedule rendering commands.renderPassDescriptor- The Metal render pass descriptor describing the rendering target.
-
renderWithViewportRenderCommandEncoderRenderPassDescriptorCommandQueue
public void renderWithViewportRenderCommandEncoderRenderPassDescriptorCommandQueue(CGRect viewport, MTLRenderCommandEncoder renderCommandEncoder, MTLRenderPassDescriptor renderPassDescriptor, MTLCommandQueue commandQueue)
Render the scene content using a specific Metal command encoder.- Parameters:
viewport- The pixel dimensions in which to render.renderCommandEncoder- The Metal render command encoder that SpriteKit will use to encode rendering commands. This method will not call endEncoding.renderPassDescriptor- The Metal render pass descriptor describing the rendering target.commandQueue- The Metal command queue.
-
rendererWithDevice
public static SKRenderer rendererWithDevice(MTLDevice device)
Creates a renderer with the specified Metal device.- Parameters:
device- A Metal device.- Returns:
- A new renderer object.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
scene
public SKScene scene()
The currently presented scene, otherwise nil. If in a transition, the 'incoming' scene is returned.
-
setIgnoresSiblingOrder
public void setIgnoresSiblingOrder(boolean value)
Ignores sibling and traversal order to sort the rendered contents of a scene into the most efficient batching possible. This will require zPosition to be used in the scenes to properly guarantee elements are in front or behind each other. This defaults to NO, meaning that sibling order overrides efficiency heuristics in the rendering of the scenes in the view. Setting this to YES for a complex scene may substantially increase performance, but care must be taken as only zPosition determines render order before the efficiency heuristics are used.
-
setScene
public void setScene(SKScene value)
The currently presented scene, otherwise nil. If in a transition, the 'incoming' scene is returned.
-
setShouldCullNonVisibleNodes
public void setShouldCullNonVisibleNodes(boolean value)
A boolean that indicated whether non-visible nodes should be automatically culled when rendering.
-
setShowsDrawCount
public void setShowsDrawCount(boolean value)
Toggles display of performance stats when rendering. All default to false.
-
setShowsFields
public void setShowsFields(boolean value)
-
setShowsNodeCount
public void setShowsNodeCount(boolean value)
-
setShowsPhysics
public void setShowsPhysics(boolean value)
-
setShowsQuadCount
public void setShowsQuadCount(boolean value)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
shouldCullNonVisibleNodes
public boolean shouldCullNonVisibleNodes()
A boolean that indicated whether non-visible nodes should be automatically culled when rendering.
-
showsDrawCount
public boolean showsDrawCount()
Toggles display of performance stats when rendering. All default to false.
-
showsFields
public boolean showsFields()
-
showsNodeCount
public boolean showsNodeCount()
-
showsPhysics
public boolean showsPhysics()
-
showsQuadCount
public boolean showsQuadCount()
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
updateAtTime
public void updateAtTime(double currentTime)
Update the scene at the specified system time.- Parameters:
currentTime- The timestamp in seconds.
-
version_static
public static long version_static()
-
-