GLKit Changes for Swift
GLKit
Modified GLKBaseEffect
| Protocols | |
|---|---|
| From | AnyObject, GLKNamedEffect |
| To | GLKNamedEffect |
Modified GLKEffectProperty
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified GLKEffectPropertyFog
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified GLKEffectPropertyLight
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified GLKEffectPropertyMaterial
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified GLKEffectPropertyTexture
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified GLKEffectPropertyTransform
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified GLKFogMode [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified GLKLightingType [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified GLKMesh
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified GLKMeshBuffer
| Declaration | Protocols | |
|---|---|---|
| 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 |
Modified GLKMeshBufferAllocator
| Protocols | |
|---|---|
| From | AnyObject, MDLMeshBufferAllocator, NSObjectProtocol |
| To | MDLMeshBufferAllocator |
Modified GLKReflectionMapEffect
| Declaration | Protocols | |
|---|---|---|
| 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 |
Modified GLKSkyboxEffect
| Protocols | |
|---|---|
| From | AnyObject, GLKNamedEffect |
| To | GLKNamedEffect |
Modified GLKSubmesh
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified GLKTextureEnvMode [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified GLKTextureInfo
| Protocols | |
|---|---|
| From | AnyObject, NSCopying |
| To | NSCopying |
Modified GLKTextureInfoAlphaState [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified GLKTextureInfoOrigin [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified GLKTextureLoader
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified GLKTextureLoaderError [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified GLKTextureTarget [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified GLKVertexAttrib [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified GLKView
| Declaration | Protocols | |
|---|---|---|
| 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 |
Modified GLKViewController
| Declaration | Protocols | |
|---|---|---|
| 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 |
Modified GLKViewDrawableColorFormat [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified GLKViewDrawableDepthFormat [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified GLKViewDrawableMultisample [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified GLKViewDrawableStencilFormat [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |