<!--
{
  "availability" : [
    "macOS: 10.9.0 - 10.14.0",
    "swift: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSOpenGLContext/openGLVersion",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "s:So15NSOpenGLContextC6AppKitE13openGLVersions5Int32V5major_AF5minortvpZ"
  },
  "title" : "openGLVersion"
}
-->

# openGLVersion

The version of OpenGL.

```
static var openGLVersion: (major: GLint, minor: GLint) { get }
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)