Contents

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

Related Documentation

Working With OpenGL