Instance Method

openGLContext()

Returns the OpenGL context used by the view.

Declaration

func openGLContext() -> NSOpenGLContext!

Return Value

An NSOpenGLContext object.

Discussion

This context as a read-only object . Do not attempt to change any of its settings. If you subclass QCView so that you can perform custom OpenGL drawing, you’ll need to use this method to retrieve the view’s OpenGL context.

See Also

Working With OpenGL

func openGLPixelFormat() -> NSOpenGLPixelFormat!

Returns the OpenGL pixel format used by the view.

Deprecated