Documentation Archive Developer
Search

ModelIO Changes for Swift

ModelIO

Modified MDLAreaLight
Protocols
FromAnyObject
To--

Modified MDLAsset
Protocols
FromAnyObject, NSCopying, NSFastEnumeration
ToNSCopying, NSFastEnumeration

Modified MDLCamera
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified MDLLight
Protocols
FromAnyObject
To--

Modified MDLLightProbe
Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified MDLMaterial
Protocols
FromAnyObject, MDLNamed, NSFastEnumeration
ToMDLNamed, NSFastEnumeration

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject, MDLNamed
ToMDLNamed

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified MDLMesh
Protocols
FromAnyObject
To--

DeclarationProtocols
From
class MDLMeshBufferData : NSObject, MDLMeshBuffer, NSCopying {
    init(type type: MDLMeshBufferType, length length: Int)
    init(type type: MDLMeshBufferType, data data: NSData?)
    var data: NSData { get }
}
AnyObject, MDLMeshBuffer, NSCopying, NSObjectProtocol
To
class MDLMeshBufferData : NSObject, MDLMeshBuffer {
    init(type type: MDLMeshBufferType, length length: Int)
    init(type type: MDLMeshBufferType, data data: NSData?)
    var data: NSData { get }
}
MDLMeshBuffer

Protocols
FromAnyObject, MDLMeshBufferAllocator, NSObjectProtocol
ToMDLMeshBufferAllocator

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject, MDLMeshBufferZone, NSObjectProtocol
ToMDLMeshBufferZone

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified MDLObject
Protocols
FromAnyObject, MDLNamed
ToMDLNamed

DeclarationProtocols
From
class MDLObjectContainer : NSObject, MDLObjectContainerComponent, MDLComponent, NSFastEnumeration {
}
AnyObject, MDLComponent, MDLObjectContainerComponent, NSFastEnumeration, NSObjectProtocol
To
class MDLObjectContainer : NSObject, MDLObjectContainerComponent {
}
MDLObjectContainerComponent

DeclarationProtocols
From
protocol MDLObjectContainerComponent : MDLComponent, NSObjectProtocol, NSFastEnumeration {
    func addObject(_ object: MDLObject)
    func removeObject(_ object: MDLObject)
    var objects: [MDLObject] { get }
}
MDLComponent, NSFastEnumeration, NSObjectProtocol
To
protocol MDLObjectContainerComponent : MDLComponent, NSFastEnumeration {
    func addObject(_ object: MDLObject)
    func removeObject(_ object: MDLObject)
    var objects: [MDLObject] { get }
}
MDLComponent, NSFastEnumeration

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject, MDLNamed
ToMDLNamed

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified MDLSubmesh
Protocols
FromAnyObject, MDLNamed
ToMDLNamed

Protocols
FromAnyObject
To--

Modified MDLTexture
Protocols
FromAnyObject, MDLNamed
ToMDLNamed

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified MDLTransform
DeclarationProtocols
From
class MDLTransform : NSObject, MDLTransformComponent, MDLComponent {
    init(identity identity: ())
    convenience init(transformComponent component: MDLTransformComponent)
    convenience init(matrix matrix: matrix_float4x4)
    func setIdentity()
    func translationAtTime(_ time: NSTimeInterval) -> vector_float3
    func rotationAtTime(_ time: NSTimeInterval) -> vector_float3
    func shearAtTime(_ time: NSTimeInterval) -> vector_float3
    func scaleAtTime(_ time: NSTimeInterval) -> vector_float3
    func setTranslation(_ translation: vector_float3, forTime time: NSTimeInterval)
    func setRotation(_ rotation: vector_float3, forTime time: NSTimeInterval)
    func setShear(_ shear: vector_float3, forTime time: NSTimeInterval)
    func setScale(_ scale: vector_float3, forTime time: NSTimeInterval)
    func rotationMatrixAtTime(_ time: NSTimeInterval) -> matrix_float4x4
    var translation: vector_float3
    var rotation: vector_float3
    var shear: vector_float3
    var scale: vector_float3
}
AnyObject, MDLComponent, MDLTransformComponent, NSObjectProtocol
To
class MDLTransform : NSObject, MDLTransformComponent {
    init(identity identity: ())
    convenience init(transformComponent component: MDLTransformComponent)
    convenience init(matrix matrix: matrix_float4x4)
    func setIdentity()
    func translationAtTime(_ time: NSTimeInterval) -> vector_float3
    func rotationAtTime(_ time: NSTimeInterval) -> vector_float3
    func shearAtTime(_ time: NSTimeInterval) -> vector_float3
    func scaleAtTime(_ time: NSTimeInterval) -> vector_float3
    func setTranslation(_ translation: vector_float3, forTime time: NSTimeInterval)
    func setRotation(_ rotation: vector_float3, forTime time: NSTimeInterval)
    func setShear(_ shear: vector_float3, forTime time: NSTimeInterval)
    func setScale(_ scale: vector_float3, forTime time: NSTimeInterval)
    func rotationMatrixAtTime(_ time: NSTimeInterval) -> matrix_float4x4
    var translation: vector_float3
    var rotation: vector_float3
    var shear: vector_float3
    var scale: vector_float3
}
MDLTransformComponent

DeclarationProtocols
From
protocol MDLTransformComponent : MDLComponent, NSObjectProtocol {
    var matrix: matrix_float4x4 { get set }
    var minimumTime: NSTimeInterval { get }
    var maximumTime: NSTimeInterval { get }
    optional func setLocalTransform(_ transform: matrix_float4x4, forTime time: NSTimeInterval)
    optional func setLocalTransform(_ transform: matrix_float4x4)
    optional func localTransformAtTime(_ time: NSTimeInterval) -> matrix_float4x4
    optional static func globalTransformWithObject(_ object: MDLObject, atTime time: NSTimeInterval) -> matrix_float4x4
}
MDLComponent, NSObjectProtocol
To
protocol MDLTransformComponent : MDLComponent {
    var matrix: matrix_float4x4 { get set }
    var minimumTime: NSTimeInterval { get }
    var maximumTime: NSTimeInterval { get }
    optional func setLocalTransform(_ transform: matrix_float4x4, forTime time: NSTimeInterval)
    optional func setLocalTransform(_ transform: matrix_float4x4)
    optional func localTransformAtTime(_ time: NSTimeInterval) -> matrix_float4x4
    optional static func globalTransformWithObject(_ object: MDLObject, atTime time: NSTimeInterval) -> matrix_float4x4
}
MDLComponent

Modified MDLURLTexture
Protocols
FromAnyObject
To--

Protocols
FromAnyObject, NSCopying
ToNSCopying

Protocols
FromAnyObject
To--

Protocols
FromAnyObject, NSCopying
ToNSCopying

Protocols
FromAnyObject, NSCopying
ToNSCopying

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified MDLVoxelArray
Protocols
FromAnyObject
To--