<!--
{
  "availability" : [
    "iOS: 2.0.0 - 12.0.0",
    "iPadOS: 2.0.0 - 12.0.0",
    "macCatalyst: 2.0.0 - 12.0.0",
    "tvOS: 9.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "OpenGLES",
  "identifier" : "/documentation/OpenGLES/EAGLGetVersion(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "OpenGL ES"
    ],
    "preciseIdentifier" : "c:@F@EAGLGetVersion"
  },
  "title" : "EAGLGetVersion(_:_:)"
}
-->

# EAGLGetVersion(_:_:)

Retrieves the version information for the EAGL implementation.

```
func EAGLGetVersion(_ major: UnsafeMutablePointer<UInt32>, _ minor: UnsafeMutablePointer<UInt32>)
```

## Parameters

`major`

On output, the major version of the EAGL implementation.

`minor`

On output, the minor version of the EAGL implementation.

## Discussion

If `major` and `minor` parameters are not `nil`, they return the major and minor version number of the EAGL implementation, respectively.

---

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)