Documentation Archive Developer
Search

GLKit Changes for Swift

GLKit

Modified GLKBaseEffect
Protocols
FromAnyObject, GLKNamedEffect
ToGLKNamedEffect

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified GLKMesh
Protocols
FromAnyObject
To--

Modified GLKMeshBuffer
DeclarationProtocols
From
class GLKMeshBuffer : NSObject, MDLMeshBuffer, NSCopying {
    var length: Int { get }
    var allocator: GLKMeshBufferAllocator { get }
    var glBufferName: GLuint { get }
    var offset: Int { get }
    var type: MDLMeshBufferType { get }
    func zone() -> MDLMeshBufferZone?
}
AnyObject, MDLMeshBuffer, NSCopying, NSObjectProtocol
To
class GLKMeshBuffer : NSObject, MDLMeshBuffer {
    var length: Int { get }
    var allocator: GLKMeshBufferAllocator { get }
    var glBufferName: GLuint { get }
    var offset: Int { get }
    var type: MDLMeshBufferType { get }
    func zone() -> MDLMeshBufferZone?
}
MDLMeshBuffer

Protocols
FromAnyObject, MDLMeshBufferAllocator, NSObjectProtocol
ToMDLMeshBufferAllocator

DeclarationProtocols
From
class GLKReflectionMapEffect : GLKBaseEffect {
    func prepareToDraw()
    var textureCubeMap: GLKEffectPropertyTexture { get }
    var matrix: GLKMatrix3
}
AnyObject, GLKNamedEffect
To
class GLKReflectionMapEffect : GLKBaseEffect, GLKNamedEffect {
    func prepareToDraw()
    var textureCubeMap: GLKEffectPropertyTexture { get }
    var matrix: GLKMatrix3
}
GLKNamedEffect

Protocols
FromAnyObject, GLKNamedEffect
ToGLKNamedEffect

Modified GLKSubmesh
Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject, NSCopying
ToNSCopying

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified GLKView
DeclarationProtocols
From
class GLKView : UIView {
    init(frame frame: CGRect, context context: EAGLContext)
    @IBOutlet unowned(unsafe) var delegate: GLKViewDelegate?
    var context: EAGLContext
    var drawableWidth: Int { get }
    var drawableHeight: Int { get }
    var drawableColorFormat: GLKViewDrawableColorFormat
    var drawableDepthFormat: GLKViewDrawableDepthFormat
    var drawableStencilFormat: GLKViewDrawableStencilFormat
    var drawableMultisample: GLKViewDrawableMultisample
    func bindDrawable()
    func deleteDrawable()
    var snapshot: UIImage { get }
    var enableSetNeedsDisplay: Bool
    func display()
}
AnyObject, NSCoding
To
class GLKView : UIView, NSCoding {
    init(frame frame: CGRect, context context: EAGLContext)
    @IBOutlet unowned(unsafe) var delegate: GLKViewDelegate?
    var context: EAGLContext
    var drawableWidth: Int { get }
    var drawableHeight: Int { get }
    var drawableColorFormat: GLKViewDrawableColorFormat
    var drawableDepthFormat: GLKViewDrawableDepthFormat
    var drawableStencilFormat: GLKViewDrawableStencilFormat
    var drawableMultisample: GLKViewDrawableMultisample
    func bindDrawable()
    func deleteDrawable()
    var snapshot: UIImage { get }
    var enableSetNeedsDisplay: Bool
    func display()
}
NSCoding

DeclarationProtocols
From
class GLKViewController : UIViewController, GLKViewDelegate {
    @IBOutlet unowned(unsafe) var delegate: GLKViewControllerDelegate?
    var preferredFramesPerSecond: Int
    var framesPerSecond: Int { get }
    var paused: Bool
    var framesDisplayed: Int { get }
    var timeSinceFirstResume: NSTimeInterval { get }
    var timeSinceLastResume: NSTimeInterval { get }
    var timeSinceLastUpdate: NSTimeInterval { get }
    var timeSinceLastDraw: NSTimeInterval { get }
    var pauseOnWillResignActive: Bool
    var resumeOnDidBecomeActive: Bool
}
AnyObject, GLKViewDelegate, NSCoding, NSObjectProtocol
To
class GLKViewController : UIViewController, NSCoding, GLKViewDelegate {
    @IBOutlet unowned(unsafe) var delegate: GLKViewControllerDelegate?
    var preferredFramesPerSecond: Int
    var framesPerSecond: Int { get }
    var paused: Bool
    var framesDisplayed: Int { get }
    var timeSinceFirstResume: NSTimeInterval { get }
    var timeSinceLastResume: NSTimeInterval { get }
    var timeSinceLastUpdate: NSTimeInterval { get }
    var timeSinceLastDraw: NSTimeInterval { get }
    var pauseOnWillResignActive: Bool
    var resumeOnDidBecomeActive: Bool
}
GLKViewDelegate, NSCoding

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--