ModelIO Changes for Swift
ModelIO
Modified MDLAreaLight
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLAsset
| Protocols | |
|---|---|
| From | AnyObject, NSCopying, NSFastEnumeration |
| To | NSCopying, NSFastEnumeration |
Modified MDLCamera
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLCheckerboardTexture
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLColorSwatchTexture
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLGeometryType [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified MDLIndexBitDepth [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified MDLLight
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLLightProbe
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLLightType [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified MDLMaterial
| Protocols | |
|---|---|
| From | AnyObject, MDLNamed, NSFastEnumeration |
| To | MDLNamed, NSFastEnumeration |
Modified MDLMaterialMipMapFilterMode [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified MDLMaterialProperty
| Protocols | |
|---|---|
| From | AnyObject, MDLNamed |
| To | MDLNamed |
Modified MDLMaterialPropertyType [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified MDLMaterialSemantic [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified MDLMaterialTextureFilterMode [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified MDLMaterialTextureWrapMode [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified MDLMesh
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLMeshBufferData
| Declaration | Protocols | |
|---|---|---|
| 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 |
Modified MDLMeshBufferDataAllocator
| Protocols | |
|---|---|
| From | AnyObject, MDLMeshBufferAllocator, NSObjectProtocol |
| To | MDLMeshBufferAllocator |
Modified MDLMeshBufferMap
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLMeshBufferType [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified MDLMeshBufferZoneDefault
| Protocols | |
|---|---|
| From | AnyObject, MDLMeshBufferZone, NSObjectProtocol |
| To | MDLMeshBufferZone |
Modified MDLNoiseTexture
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLNormalMapTexture
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLObject
| Protocols | |
|---|---|
| From | AnyObject, MDLNamed |
| To | MDLNamed |
Modified MDLObjectContainer
| Declaration | Protocols | |
|---|---|---|
| From | class MDLObjectContainer : NSObject, MDLObjectContainerComponent, MDLComponent, NSFastEnumeration {
} | AnyObject, MDLComponent, MDLObjectContainerComponent, NSFastEnumeration, NSObjectProtocol |
| To | class MDLObjectContainer : NSObject, MDLObjectContainerComponent {
} | MDLObjectContainerComponent |
Modified MDLObjectContainerComponent
| Declaration | Protocols | |
|---|---|---|
| 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 |
Modified MDLPhotometricLight
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLPhysicallyPlausibleLight
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLScatteringFunction
| Protocols | |
|---|---|
| From | AnyObject, MDLNamed |
| To | MDLNamed |
Modified MDLSkyCubeTexture
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLStereoscopicCamera
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLSubmesh
| Protocols | |
|---|---|
| From | AnyObject, MDLNamed |
| To | MDLNamed |
Modified MDLSubmeshTopology
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLTexture
| Protocols | |
|---|---|
| From | AnyObject, MDLNamed |
| To | MDLNamed |
Modified MDLTextureChannelEncoding [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified MDLTextureFilter
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLTextureSampler
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLTransform
| Declaration | Protocols | |
|---|---|---|
| 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 |
Modified MDLTransformComponent
| Declaration | Protocols | |
|---|---|---|
| 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 | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLVertexAttribute
| Protocols | |
|---|---|
| From | AnyObject, NSCopying |
| To | NSCopying |
Modified MDLVertexAttributeData
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified MDLVertexBufferLayout
| Protocols | |
|---|---|
| From | AnyObject, NSCopying |
| To | NSCopying |
Modified MDLVertexDescriptor
| Protocols | |
|---|---|
| From | AnyObject, NSCopying |
| To | NSCopying |
Modified MDLVertexFormat [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified MDLVoxelArray
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |