# GlTextureInfo

# GlTextureInfo

Artifact:[androidx.media3:media3-common](https://developer.android.com/jetpack/androidx/releases/media3)  
[View Source](https://cs.android.com/search?q=file:androidx/media3/common/GlTextureInfo.java+class:androidx.media3.common.GlTextureInfo)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/common/GlTextureInfo "View this page in Java")

<br />

```
@UnstableApi
class GlTextureInfo
```

<br />

*** ** * ** ***

Contains information describing an OpenGL texture.

## Summary

|                                                  ### Constants                                                  |
|-----------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[GlTextureInfo](https://developer.android.com/reference/kotlin/androidx/media3/common/GlTextureInfo)`!` | [UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/GlTextureInfo#UNSET()) A[GlTextureInfo](https://developer.android.com/reference/kotlin/androidx/media3/common/GlTextureInfo)instance with all fields unset. |

|                                                                                                                                                                                                                                                                                             ### Public constructors                                                                                                                                                                                                                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [GlTextureInfo](https://developer.android.com/reference/kotlin/androidx/media3/common/GlTextureInfo#GlTextureInfo(int,int,int,int,int))`(texId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, fboId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, rboId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, width: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, height: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Creates a new instance. |

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [release](https://developer.android.com/reference/kotlin/androidx/media3/common/GlTextureInfo#release())`()` Releases all information associated with this instance. |

|                            ### Public properties                            |
|-----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [fboId](https://developer.android.com/reference/kotlin/androidx/media3/common/GlTextureInfo#fboId()) Identifier of a framebuffer object associated with the texture, or[INDEX_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET())if not specified.    |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [height](https://developer.android.com/reference/kotlin/androidx/media3/common/GlTextureInfo#height()) The height of the texture, in pixels, or[LENGTH_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#LENGTH_UNSET())if not specified.                          |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [rboId](https://developer.android.com/reference/kotlin/androidx/media3/common/GlTextureInfo#rboId()) Identifier of a renderbuffer object attached with the framebuffer, or[INDEX_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET())if not specified. |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [texId](https://developer.android.com/reference/kotlin/androidx/media3/common/GlTextureInfo#texId()) The OpenGL texture identifier, or[INDEX_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET())if not specified.                                     |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [width](https://developer.android.com/reference/kotlin/androidx/media3/common/GlTextureInfo#width()) The width of the texture, in pixels, or[LENGTH_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#LENGTH_UNSET())if not specified.                             |

## Constants

### UNSET

```
const val UNSET: GlTextureInfo!
```

A[GlTextureInfo](https://developer.android.com/reference/kotlin/androidx/media3/common/GlTextureInfo)instance with all fields unset.  

## Public constructors

### GlTextureInfo

```
GlTextureInfo(texId: Int, fboId: Int, rboId: Int, width: Int, height: Int)
```

Creates a new instance.  

|                                      Parameters                                       |
|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `texId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)  | The OpenGL texture identifier, or[INDEX_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET())if not specified.                                   |
| `fboId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)  | Identifier of a framebuffer object associated with the texture, or[INDEX_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET())if not specified.  |
| `rboId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)  | Identifier of a renderbuffer object associated with the texture, or[INDEX_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET())if not specified. |
| `width: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)  | The width of the texture, in pixels, or[LENGTH_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#LENGTH_UNSET())if not specified.                           |
| `height: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The height of the texture, in pixels, or[LENGTH_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#LENGTH_UNSET())if not specified.                          |

## Public functions

### release

```
fun release(): Unit
```

Releases all information associated with this instance.  

|                                                                     Throws                                                                      |
|-------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [androidx.media3.common.util.GlUtil.GlException](https://developer.android.com/reference/kotlin/androidx/media3/common/util/GlUtil.GlException) |   |

## Public properties

### fboId

```
val fboId: Int
```

Identifier of a framebuffer object associated with the texture, or[INDEX_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET())if not specified.  

### height

```
val height: Int
```

The height of the texture, in pixels, or[LENGTH_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#LENGTH_UNSET())if not specified.  

### rboId

```
val rboId: Int
```

Identifier of a renderbuffer object attached with the framebuffer, or[INDEX_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET())if not specified.  

### texId

```
val texId: Int
```

The OpenGL texture identifier, or[INDEX_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET())if not specified.  

### width

```
val width: Int
```

The width of the texture, in pixels, or[LENGTH_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#LENGTH_UNSET())if not specified.