# 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)

*** ** * ** ***


```
@UnstableApi
public final class GlTextureInfo
```

<br />

*** ** * ** ***

Contains information describing an OpenGL texture.

## Summary

| ### Constants |
|---|---|
| `static final https://developer.android.com/reference/androidx/media3/common/GlTextureInfo` | `https://developer.android.com/reference/androidx/media3/common/GlTextureInfo#UNSET()` A `https://developer.android.com/reference/androidx/media3/common/GlTextureInfo` instance with all fields unset. |

| ### Public fields |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/media3/common/GlTextureInfo#fboId()` Identifier of a framebuffer object associated with the texture, or `https://developer.android.com/reference/androidx/media3/common/C#INDEX_UNSET()` if not specified. |
| `final int` | `https://developer.android.com/reference/androidx/media3/common/GlTextureInfo#height()` The height of the texture, in pixels, or `https://developer.android.com/reference/androidx/media3/common/C#LENGTH_UNSET()` if not specified. |
| `final int` | `https://developer.android.com/reference/androidx/media3/common/GlTextureInfo#rboId()` Identifier of a renderbuffer object attached with the framebuffer, or `https://developer.android.com/reference/androidx/media3/common/C#INDEX_UNSET()` if not specified. |
| `final int` | `https://developer.android.com/reference/androidx/media3/common/GlTextureInfo#texId()` The OpenGL texture identifier, or `https://developer.android.com/reference/androidx/media3/common/C#INDEX_UNSET()` if not specified. |
| `final int` | `https://developer.android.com/reference/androidx/media3/common/GlTextureInfo#width()` The width of the texture, in pixels, or `https://developer.android.com/reference/androidx/media3/common/C#LENGTH_UNSET()` if not specified. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/common/GlTextureInfo#GlTextureInfo(int,int,int,int,int)(int texId, int fboId, int rboId, int width, int height)` Creates a new instance. |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/media3/common/GlTextureInfo#release()()` Releases all information associated with this instance. |

## Constants

### UNSET

```
public static final GlTextureInfo UNSET
```

A `https://developer.android.com/reference/androidx/media3/common/GlTextureInfo` instance with all fields unset.

## Public fields

### fboId

```
public final int fboId
```

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

### height

```
public final int height
```

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

### rboId

```
public final int rboId
```

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

### texId

```
public final int texId
```

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

### width

```
public final int width
```

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

## Public constructors

### GlTextureInfo

```
public GlTextureInfo(int texId, int fboId, int rboId, int width, int height)
```

Creates a new instance.

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

## Public methods

### release

```
public void release()
```

Releases all information associated with this instance.

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/util/GlUtil.GlException` |   |