Documentation Archive Developer
Search

OpenGLES Changes for Swift

OpenGLES

Modified EAGLContext
Declaration
From
class EAGLContext : NSObject {
    convenience init!(API api: EAGLRenderingAPI)
    init!(API api: EAGLRenderingAPI, sharegroup sharegroup: EAGLSharegroup!)
    class func setCurrentContext(_ context: EAGLContext!) -> Bool
    class func currentContext() -> EAGLContext!
    var API: EAGLRenderingAPI { get }
    var sharegroup: EAGLSharegroup! { get }
    var debugLabel: String!
    var multiThreaded: Bool
}
extension EAGLContext {
    func renderbufferStorage(_ target: Int, fromDrawable drawable: EAGLDrawable!) -> Bool
    func presentRenderbuffer(_ target: Int) -> Bool
}
To
class EAGLContext : NSObject {
    convenience init!()
    convenience init!(API api: EAGLRenderingAPI)
    init!(API api: EAGLRenderingAPI, sharegroup sharegroup: EAGLSharegroup!)
    class func setCurrentContext(_ context: EAGLContext!) -> Bool
    class func currentContext() -> EAGLContext!
    var API: EAGLRenderingAPI { get }
    var sharegroup: EAGLSharegroup! { get }
    var debugLabel: String!
    var multiThreaded: Bool
}
extension EAGLContext {
    func renderbufferStorage(_ target: Int, fromDrawable drawable: EAGLDrawable!) -> Bool
    func presentRenderbuffer(_ target: Int) -> Bool
}

Introduction
FromiOS 8.0
ToiOS 2.0

Raw Value Type
From--
ToUInt