<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSOpenGLGetVersion",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@F@NSOpenGLGetVersion"
  },
  "title" : "NSOpenGLGetVersion"
}
-->

# NSOpenGLGetVersion

Returns the NSOpenGL version numbers.

```
extern void NSOpenGLGetVersion(GLint *major, GLint *minor);
```

## Discussion

Returns by reference the major and minor version numbers of the NSOpenGL implementation. This function is not the same as the OpenGL version.

---

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)