Instance Property

openGLContext

The NSOpenGLContext object associated with the receiver.

Declaration

var openGLContext: NSOpenGLContext? { get set }

Discussion

If the receiver has no associated context object, a new NSOpenGLContext object is created. The new object is initialized with the receiver’s pixel format information.

See Also

Managing the NSOpenGLContext

func prepareOpenGL()

Used by subclasses to initialize OpenGL state.

Deprecated
func clearGLContext()

Releases the NSOpenGLContext object associated with the view.

Deprecated