Instance Property

sharegroup

The context’s sharegroup object. (read-only)

Declaration

var sharegroup: EAGLSharegroup { get }

Discussion

Retrieve the sharegroup of a context when you want to create two or more contexts that share rendering resources. Call init(api:) to initialize the first context, retrieve its sharegroup, and then initialize additional contexts by calling init(api:sharegroup:), passing this sharegroup as the parameter.

See Also

Getting Context Information

var api: EAGLRenderingAPI

The OpenGL ES rendering API version supported by the context. (read-only)

Deprecated
var debugLabel: String?

A label describing the context for use in debugging.

Deprecated
class func current() -> EAGLContext?

Returns the current rendering context for the calling thread.

Deprecated