public class SKTexture extends NSObject implements NSCopying, NSSecureCoding
| Modifier and Type | Class and Description |
|---|---|
static interface |
SKTexture.Block_preloadTexturesWithCompletionHandler |
static interface |
SKTexture.Block_preloadWithCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
SKTexture(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static SKTexture |
alloc() |
static SKTexture |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
CGImageRef |
CGImage()
Convert the current SKTexture into a CGImageRef object
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
long |
filteringMode()
The filtering mode the texture should use when not drawn at native size.
|
static long |
hash_static() |
SKTexture |
init() |
SKTexture |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static SKTexture |
new_objc() |
static void |
preloadTexturesWithCompletionHandler(NSArray<? extends SKTexture> textures,
SKTexture.Block_preloadTexturesWithCompletionHandler completionHandler)
Start a texture preload operation on an array of textures
|
void |
preloadWithCompletionHandler(SKTexture.Block_preloadWithCompletionHandler completionHandler)
Request that this texture be loaded into vram on the next render update, with a callback handler.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setFilteringMode(long value)
The filtering mode the texture should use when not drawn at native size.
|
void |
setUsesMipmaps(boolean value)
Request that the texture have mipmaps generated if possible.
|
static void |
setVersion_static(long aVersion) |
CGSize |
size()
The size of the texture's bitmap data in points.
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
SKTexture |
textureByApplyingCIFilter(CIFilter filter)
Create new texture by applying a CIFilter to an existing one.
|
SKTexture |
textureByGeneratingNormalMap()
Create new texture by generating a normal map texture.
|
SKTexture |
textureByGeneratingNormalMapWithSmoothnessContrast(double smoothness,
double contrast)
Create new texture by generating a normal map texture.
|
static SKTexture |
textureNoiseWithSmoothnessSizeGrayscale(double smoothness,
CGSize size,
boolean grayscale)
Create a texture containing colored noise.
|
CGRect |
textureRect()
Used to choose the area of the texture you want to display.
|
static SKTexture |
textureVectorNoiseWithSmoothnessSize(double smoothness,
CGSize size)
Create a texture containing directional noise.
|
static SKTexture |
textureWithCGImage(CGImageRef image)
Create a texture from a CGImageRef.
|
static SKTexture |
textureWithDataSize(NSData pixelData,
CGSize size)
Create new texture with bitmap RGBA data in unsigned bytes.
|
static SKTexture |
textureWithDataSizeFlipped(NSData pixelData,
CGSize size,
boolean flipped) |
static SKTexture |
textureWithDataSizeRowLengthAlignment(NSData pixelData,
CGSize size,
int rowLength,
int alignment)
Create new texture with bitmap RGBA data in unsigned bytes using a custom row length and row alignment.
|
static SKTexture |
textureWithImage(UIImage image) |
static SKTexture |
textureWithImageNamed(java.lang.String name)
Create a texture from an image file.
|
static SKTexture |
textureWithNoiseMap(GKNoiseMap noiseMap)
Create a texture from a GKNoiseMap.
|
static SKTexture |
textureWithRectInTexture(CGRect rect,
SKTexture texture)
Create a texture that is a subrect of an existing texture.
|
boolean |
usesMipmaps()
Request that the texture have mipmaps generated if possible.
|
static long |
version_static() |
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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static SKTexture alloc()
public static SKTexture allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static SKTexture new_objc()
public static void preloadTexturesWithCompletionHandler(NSArray<? extends SKTexture> textures, SKTexture.Block_preloadTexturesWithCompletionHandler completionHandler)
textures - an array of SKTextures to be preloadedcompletionHandler - will be called upon the preload completionpublic static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static SKTexture textureNoiseWithSmoothnessSizeGrayscale(double smoothness, CGSize size, boolean grayscale)
size - the size of the resulting texture.smoothness - how similar neighboring pixels are. A value of zero is like static, one is smooth.grayscale - if YES, RGB and A will all be the same. If no, RGB and A will all be different. A is not pre-multiplied, because the intent is that if you read a texel in a shader, all four values will be exactly the same value if grayscale, or four different, uncorrelated values if not grayscale.public static SKTexture textureVectorNoiseWithSmoothnessSize(double smoothness, CGSize size)
size - the size of the resulting texture.smoothness - how similar neighboring pixels are. A value of zero is like static, one is smooth.public static SKTexture textureWithCGImage(CGImageRef image)
image - the CGImageRef to create the texture frompublic static SKTexture textureWithDataSize(NSData pixelData, CGSize size)
pixelData - the pixelData to read in creating the texture.size - the dimensions of the pixelData given.public static SKTexture textureWithDataSizeFlipped(NSData pixelData, CGSize size, boolean flipped)
public static SKTexture textureWithDataSizeRowLengthAlignment(NSData pixelData, CGSize size, int rowLength, int alignment)
pixelData - the data to usesize - the size in texelsrowLength - the length of each row in pixels (allows byte row pitches greater than the width for aligned data)alignment - the byte alignment of the data, provide 0 for tightly packed data.public static SKTexture textureWithImageNamed(java.lang.String name)
name - the name or path of the image to load.public static SKTexture textureWithNoiseMap(GKNoiseMap noiseMap)
noiseMap - the GKNoiseMap from which to create the texture.public static SKTexture textureWithRectInTexture(CGRect rect, SKTexture texture)
rect - the source rectangle to use in creating a logical copy of the given texture.texture - the existing texture to reference in the copy.public static long version_static()
public CGImageRef CGImage()
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic long filteringMode()
public SKTexture initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic void preloadWithCompletionHandler(SKTexture.Block_preloadWithCompletionHandler completionHandler)
public void setFilteringMode(long value)
public void setUsesMipmaps(boolean value)
public CGSize size()
public SKTexture textureByApplyingCIFilter(CIFilter filter)
filter - the CI filter to apply in the copy.public SKTexture textureByGeneratingNormalMap()
public SKTexture textureByGeneratingNormalMapWithSmoothnessContrast(double smoothness, double contrast)
smoothness - the smooth level of the generated normal map.contrast - the scale applied to the generated normal map.public CGRect textureRect()
public boolean usesMipmaps()
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding