Package apple.scenekit
Class SCNProgram
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.scenekit.SCNProgram
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSSecureCoding,NSObject
public class SCNProgram extends NSObject implements NSCopying, NSSecureCoding
SCNProgram A SCNProgram lets you specify custom shaders to use when rendering materials.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSCNProgram.Block_handleBindingOfBufferNamedFrequencyUsingBlock-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSCNProgram(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static SCNProgramalloc()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()java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()SCNProgramDelegatedelegate()[@property] delegate Determines the receiver's delegatestatic java.lang.Stringdescription_static()voidencodeWithCoder(NSCoder coder)java.lang.StringfragmentFunctionName()[@property] fragmentFunctionName Determines the receiver's fragment function name.java.lang.StringfragmentShader()[@property] fragmentShader Determines the receiver's fragment shader.voidhandleBindingOfBufferNamedFrequencyUsingBlock(java.lang.String name, long frequency, SCNProgram.Block_handleBindingOfBufferNamedFrequencyUsingBlock block)handleBindingOfBufferNamed:frequency:usingBlock: Sets the block to call at render time to bind the buffer of the specified symbol of the receiver's program.static longhash_static()SCNPrograminit()SCNPrograminitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERstatic 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)booleanisOpaque()[@property] opaque Determines the receiver's fragment are opaque or not.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)MTLLibrarylibrary()[@property] library Specifies the metal library to use to locate the function names specified above.static java.lang.Objectnew_objc()static SCNProgramprogram()program Creates and initialize a program instance.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)java.lang.StringsemanticForSymbol(java.lang.String symbol)semanticForSymbol: Retrieves the SceneKit semantic associated to a symbol from the program source code.voidsetDelegate(SCNProgramDelegate value)[@property] delegate Determines the receiver's delegatevoidsetDelegate_unsafe(SCNProgramDelegate value)[@property] delegate Determines the receiver's delegatevoidsetFragmentFunctionName(java.lang.String value)[@property] fragmentFunctionName Determines the receiver's fragment function name.voidsetFragmentShader(java.lang.String value)[@property] fragmentShader Determines the receiver's fragment shader.voidsetLibrary(MTLLibrary value)[@property] library Specifies the metal library to use to locate the function names specified above.voidsetOpaque(boolean value)[@property] opaque Determines the receiver's fragment are opaque or not.voidsetSemanticForSymbolOptions(java.lang.String semantic, java.lang.String symbol, NSDictionary<java.lang.String,?> options)setSemantic:forSymbol:options: Associates a SceneKit semantic to a symbol.static voidsetVersion_static(long aVersion)voidsetVertexFunctionName(java.lang.String value)[@property] vertexFunctionName Determines the receiver's vertex function name.voidsetVertexShader(java.lang.String value)[@property] vertexShader Determines the receiver's vertex shader.static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()static longversion_static()java.lang.StringvertexFunctionName()[@property] vertexFunctionName Determines the receiver's vertex function name.java.lang.StringvertexShader()[@property] vertexShader Determines the receiver's vertex shader.-
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 SCNProgram 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()
-
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()
-
program
public static SCNProgram program()
program Creates and initialize a program instance.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
version_static
public static long version_static()
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
delegate
public SCNProgramDelegate delegate()
[@property] delegate Determines the receiver's delegate
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
fragmentFunctionName
public java.lang.String fragmentFunctionName()
[@property] fragmentFunctionName Determines the receiver's fragment function name. The name of the fragment function (for Metal programs).
-
fragmentShader
public java.lang.String fragmentShader()
[@property] fragmentShader Determines the receiver's fragment shader.
-
handleBindingOfBufferNamedFrequencyUsingBlock
public void handleBindingOfBufferNamedFrequencyUsingBlock(java.lang.String name, long frequency, SCNProgram.Block_handleBindingOfBufferNamedFrequencyUsingBlock block)handleBindingOfBufferNamed:frequency:usingBlock: Sets the block to call at render time to bind the buffer of the specified symbol of the receiver's program. This method can only be used with Metal based programs.- Parameters:
name- The name of the buffer to bind.frequency- The frequency at which the block has to be invoked. Can be per frame, per node or per geometry or material. See SCNBufferBindingBlock above.block- The block that binds the buffer.
-
init
public SCNProgram init()
-
initWithCoder
public SCNProgram initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
isOpaque
public boolean isOpaque()
[@property] opaque Determines the receiver's fragment are opaque or not. Defaults to YES.
-
setOpaque
public void setOpaque(boolean value)
[@property] opaque Determines the receiver's fragment are opaque or not. Defaults to YES.
-
library
public MTLLibrary library()
[@property] library Specifies the metal library to use to locate the function names specified above. If set to nil the default library is used. Defaults to nil.
-
semanticForSymbol
public java.lang.String semanticForSymbol(java.lang.String symbol)
semanticForSymbol: Retrieves the SceneKit semantic associated to a symbol from the program source code.- Parameters:
symbol- A symbol from the program source code.
-
setDelegate_unsafe
public void setDelegate_unsafe(SCNProgramDelegate value)
[@property] delegate Determines the receiver's delegate
-
setDelegate
public void setDelegate(SCNProgramDelegate value)
[@property] delegate Determines the receiver's delegate
-
setFragmentFunctionName
public void setFragmentFunctionName(java.lang.String value)
[@property] fragmentFunctionName Determines the receiver's fragment function name. The name of the fragment function (for Metal programs).
-
setFragmentShader
public void setFragmentShader(java.lang.String value)
[@property] fragmentShader Determines the receiver's fragment shader.
-
setLibrary
public void setLibrary(MTLLibrary value)
[@property] library Specifies the metal library to use to locate the function names specified above. If set to nil the default library is used. Defaults to nil.
-
setSemanticForSymbolOptions
public void setSemanticForSymbolOptions(java.lang.String semantic, java.lang.String symbol, NSDictionary<java.lang.String,?> options)setSemantic:forSymbol:options: Associates a SceneKit semantic to a symbol. Associates semantics handled by the SceneKit runtime to a symbol from the program. Supported semantics are listed in SCNGeometry.h and SCNNode.h.- Parameters:
semantic- The SceneKit semantic to associate to the specified symbol.symbol- A symbol from the program source code.options- An optional dictionary. See the 'Semantic options' above.
-
setVertexFunctionName
public void setVertexFunctionName(java.lang.String value)
[@property] vertexFunctionName Determines the receiver's vertex function name. The name of the vertex function (for Metal programs).
-
setVertexShader
public void setVertexShader(java.lang.String value)
[@property] vertexShader Determines the receiver's vertex shader.
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding
-
vertexFunctionName
public java.lang.String vertexFunctionName()
[@property] vertexFunctionName Determines the receiver's vertex function name. The name of the vertex function (for Metal programs).
-
vertexShader
public java.lang.String vertexShader()
[@property] vertexShader Determines the receiver's vertex shader.
-
-