# EGLVersion

Artifact: [androidx.graphics:graphics-core](https://developer.android.com/jetpack/androidx/releases/graphics) [View Source](https://cs.android.com/search?q=file:androidx/graphics/opengl/egl/EGLSpec.kt+class:androidx.graphics.opengl.egl.EGLVersion) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

*** ** * ** ***


```
data class EGLVersion
```

<br />

*** ** * ** ***

Identifier for the current EGL implementation

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/graphics/opengl/egl/EGLVersion` | `https://developer.android.com/reference/kotlin/androidx/graphics/opengl/egl/EGLVersion#Unknown()` Sentinel EglVersion value returned in error situations |
| `https://developer.android.com/reference/kotlin/androidx/graphics/opengl/egl/EGLVersion` | `https://developer.android.com/reference/kotlin/androidx/graphics/opengl/egl/EGLVersion#V14()` Constant that represents version 1.4 of the EGL spec |
| `https://developer.android.com/reference/kotlin/androidx/graphics/opengl/egl/EGLVersion` | `https://developer.android.com/reference/kotlin/androidx/graphics/opengl/egl/EGLVersion#V15()` Constant that represents version 1.5 of the EGL spec |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/graphics/opengl/egl/EGLVersion#EGLVersion(kotlin.Int,kotlin.Int)(major: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, minor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/graphics/opengl/egl/EGLVersion#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/graphics/opengl/egl/EGLVersion#major()` Major version of the EGL implementation |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/graphics/opengl/egl/EGLVersion#minor()` Minor version of the EGL implementation |

## Public companion properties

### Unknown

```
val Unknown: EGLVersion
```

Sentinel EglVersion value returned in error situations

### V14

```
val V14: EGLVersion
```

Constant that represents version 1.4 of the EGL spec

### V15

```
val V15: EGLVersion
```

Constant that represents version 1.5 of the EGL spec

## Public constructors

### EGLVersion

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
EGLVersion(major: Int, minor: Int)
```

| Parameters |
|---|---|
| `major: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Major version of the EGL implementation |
| `minor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Minor version of the EGL implementation |

## Public functions

### toString

```
open fun toString(): String
```

## Public properties

### major

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
val major: Int
```

Major version of the EGL implementation

### minor

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
val minor: Int
```

Minor version of the EGL implementation