---
title: "EAGLGetVersion(_:_:)"
framework: OpenGL ES
role: symbol
role_heading: Function
platforms: [iOS 2.0+, iPadOS 2.0+, Mac Catalyst 2.0+, tvOS 9.0+]
path: "opengles/eaglgetversion(_:_:)"
---

# EAGLGetVersion(_:_:)

Retrieves the version information for the EAGL implementation.

## Declaration

```swift
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

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