Package org.robovm.apple.modelio
Class MDLTexture
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.modelio.MDLTexture
- All Implemented Interfaces:
NSObjectProtocol,MDLNamed,ObjCProtocol
- Direct Known Subclasses:
MDLCheckerboardTexture,MDLColorSwatchTexture,MDLNoiseTexture,MDLNormalMapTexture,MDLSkyCubeTexture,MDLURLTexture
public class MDLTexture extends NSObject implements MDLNamed
- Since:
- Available in iOS 9.0 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMDLTexture.MDLTexturePtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description MDLTexture()MDLTexture(String name)MDLTexture(String name, NSBundle bundleOrNil)MDLTexture(String name, MDLAssetResolver resolver)MDLTexture(NSData pixelData, boolean topLeftOrigin, String name, VectorInt2 dimensions, long rowStride, long channelCount, MDLTextureChannelEncoding channelEncoding, boolean isCube)protectedMDLTexture(NSObject.Handle h, long handle)protectedMDLTexture(NSObject.SkipInit skipInit) -
Method Summary
Modifier and Type Method Description protected static longcreate(String name)protected static longcreate(String name, NSBundle bundleOrNil)protected static longcreate(String name, MDLAssetResolver resolver)longgetChannelCount()MDLTextureChannelEncodinggetChannelEncoding()VectorInt2getDimensions()CGImagegetImage()longgetMipLevelCount()StringgetName()longgetRowStride()NSDatagetTexelDataWithBottomLeftOrigin()NSDatagetTexelDataWithBottomLeftOrigin(long level, boolean create)NSDatagetTexelDataWithTopLeftOrigin()NSDatagetTexelDataWithTopLeftOrigin(long level, boolean create)booleanhasAlphaValues()CGImageimageFromTextureAtLevel(long level)protected longinit(NSData pixelData, boolean topLeftOrigin, String name, VectorInt2 dimensions, long rowStride, long channelCount, MDLTextureChannelEncoding channelEncoding, boolean isCube)booleanisCube()static MDLTexturenewIrradianceTextureCube(MDLTexture texture, String name, VectorInt2 dimensions)static MDLTexturenewIrradianceTextureCube(MDLTexture texture, String name, VectorInt2 dimensions, float roughness)static MDLTexturenewTextureCube(List<String> names)static MDLTexturenewTextureCube(List<String> names, NSBundle bundleOrNil)voidsetHasAlphaValues(boolean v)voidsetIsCube(boolean v)voidsetName(String v)booleanwrite(NSURL URL)booleanwrite(NSURL URL, long level)booleanwrite(NSURL nsurl, String type)booleanwrite(NSURL nsurl, String type, long level)Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Constructor Details
-
MDLTexture
public MDLTexture() -
MDLTexture
-
MDLTexture
-
MDLTexture
public MDLTexture(NSData pixelData, boolean topLeftOrigin, String name, VectorInt2 dimensions, long rowStride, long channelCount, MDLTextureChannelEncoding channelEncoding, boolean isCube) -
MDLTexture
-
MDLTexture
-
MDLTexture
- Since:
- Available in iOS 12.0 and later.
-
-
Method Details
-
getDimensions
-
getRowStride
public long getRowStride() -
getChannelCount
public long getChannelCount() -
getMipLevelCount
public long getMipLevelCount() -
getChannelEncoding
-
isCube
public boolean isCube() -
setIsCube
public void setIsCube(boolean v) -
hasAlphaValues
public boolean hasAlphaValues() -
setHasAlphaValues
public void setHasAlphaValues(boolean v) -
getName
-
setName
-
init
protected long init(NSData pixelData, boolean topLeftOrigin, String name, VectorInt2 dimensions, long rowStride, long channelCount, MDLTextureChannelEncoding channelEncoding, boolean isCube) -
write
-
write
- Since:
- Available in iOS 11.0 and later.
-
write
-
write
- Since:
- Available in iOS 11.0 and later.
-
getImage
-
imageFromTextureAtLevel
- Since:
- Available in iOS 11.0 and later.
-
getTexelDataWithTopLeftOrigin
-
getTexelDataWithBottomLeftOrigin
-
getTexelDataWithTopLeftOrigin
-
getTexelDataWithBottomLeftOrigin
-
create
-
create
-
create
- Since:
- Available in iOS 12.0 and later.
-
newTextureCube
-
newTextureCube
-
newIrradianceTextureCube
public static MDLTexture newIrradianceTextureCube(MDLTexture texture, String name, VectorInt2 dimensions) -
newIrradianceTextureCube
public static MDLTexture newIrradianceTextureCube(MDLTexture texture, String name, VectorInt2 dimensions, float roughness)
-