public class MDLTexture extends NSObject implements MDLNamed
A texture optionally generates or loads texels through an access to the data property, or one of the other properties, otherwise the texture object is a lightweight descriptor only.
[@property] data Texel data that will exist when referenced; it may or may not exist before [@property] dimensions texel width and height of the texture [@property] rowStride The number of bytes from the first texel in a row to the first texel in the next row. A rowStride of zero indicates that interleaved x,y addressing of texels is not possible. This might be the case if the texture was compressed in some manner, for example. [@property] channelCount The number of channels incoded in a single texel. For example, an RGB texture has 3 channels. All channels must have the same encoding. [@property] channelEncoding The encoding of a channel in a single texel. [@property] isCube The texture encodes a cube map. If YES, then the layout of the cube map is deduced as a vertical strip if dimension.y is six times dimension.x. Other layouts are possible in the future.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MDLTexture(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static MDLTexture |
alloc() |
static MDLTexture |
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) |
long |
channelCount() |
long |
channelEncoding() |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
boolean |
hasAlphaValues()
hasAlphaValues
[@summary]
Can be overridden.
|
static long |
hash_static() |
CGImageRef |
imageFromTexture() |
CGImageRef |
imageFromTextureAtLevel(long level) |
MDLTexture |
init() |
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) |
boolean |
isCube() |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
long |
mipLevelCount() |
java.lang.String |
name() |
static MDLTexture |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
long |
rowStride() |
void |
setHasAlphaValues(boolean value)
hasAlphaValues
[@summary]
Can be overridden.
|
void |
setIsCube(boolean value) |
void |
setName(java.lang.String value) |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
NSData |
texelDataWithBottomLeftOrigin() |
NSData |
texelDataWithBottomLeftOriginAtMipLevelCreate(long level,
boolean create) |
NSData |
texelDataWithTopLeftOrigin() |
NSData |
texelDataWithTopLeftOriginAtMipLevelCreate(long level,
boolean create) |
static MDLTexture |
textureCubeWithImagesNamed(NSArray<java.lang.String> names)
Creates a cube texture map image using 6 faces of the same dimensions,
ordered +X,-X,+Y,-Y,+Z,-Z If the data is read back the image will be compacted
into a single vertical stack where dimensions.y = 6 * dimensions.x
isCube will return YES
|
static MDLTexture |
textureCubeWithImagesNamedBundle(NSArray<java.lang.String> names,
NSBundle bundleOrNil) |
static MDLTexture |
textureNamed(java.lang.String name)
Creates a texture from a source in the main bundle named in a manner matching
name.
|
static MDLTexture |
textureNamedAssetResolver(java.lang.String name,
MDLAssetResolver resolver) |
static MDLTexture |
textureNamedBundle(java.lang.String name,
NSBundle bundleOrNil) |
static long |
version_static() |
boolean |
writeToURL(NSURL URL)
write a texture to URL, deducing type from path extension
|
boolean |
writeToURLLevel(NSURL URL,
long level)
write a particular level of a mipped texture to URL, deducing type from path extension
|
boolean |
writeToURLType(NSURL nsurl,
CFStringRef type)
write a texture to URL, using a specific UT type
|
boolean |
writeToURLTypeLevel(NSURL nsurl,
CFStringRef type,
long level)
write a particular level of a mipped texture to URL, using a specific UT type
|
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 MDLTexture alloc()
public static MDLTexture 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 MDLTexture new_objc()
public 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 MDLTexture textureCubeWithImagesNamed(NSArray<java.lang.String> names)
names - a collection of mosaiced images in a cross formation or column or row.
- If 6 individual images are given they are assumed to be in order and will be
loaded as is.
- if 3 images of double height or width are given they will be treated as
pairs of + and - in each axis, the order is must be x, then y, then z.
- if 2 images of triple height or width are given they will be treates as a
positive set and a negative set in the order +x, +y, +z, then -x, -y, -z.
- if a single image is given it will be used without conversion if in column
orientation and demosaiced in all other instances.public static MDLTexture textureCubeWithImagesNamedBundle(NSArray<java.lang.String> names, NSBundle bundleOrNil)
public static MDLTexture textureNamed(java.lang.String name)
public static MDLTexture textureNamedBundle(java.lang.String name, NSBundle bundleOrNil)
public static long version_static()
public long channelCount()
public long channelEncoding()
public boolean hasAlphaValues()
public CGImageRef imageFromTexture()
public MDLTexture init()
public boolean isCube()
public long mipLevelCount()
public long rowStride()
public void setHasAlphaValues(boolean value)
public void setIsCube(boolean value)
public NSData texelDataWithBottomLeftOrigin()
public NSData texelDataWithBottomLeftOriginAtMipLevelCreate(long level, boolean create)
public NSData texelDataWithTopLeftOrigin()
public NSData texelDataWithTopLeftOriginAtMipLevelCreate(long level, boolean create)
public boolean writeToURL(NSURL URL)
public boolean writeToURLType(NSURL nsurl, CFStringRef type)
public CGImageRef imageFromTextureAtLevel(long level)
public boolean writeToURLLevel(NSURL URL, long level)
public boolean writeToURLTypeLevel(NSURL nsurl, CFStringRef type, long level)
public static MDLTexture textureNamedAssetResolver(java.lang.String name, MDLAssetResolver resolver)