OpenGL ES provides only a single clamping wrap mode: CLAMP_TO_EDGE. However, the ability to clamp to a constant border color can be useful to quickly detect texture coordinates that exceed their expected limits or to dummy out any such accesses with transparency or a neutral color in tiling or light maps.
This extension defines an additional texture clamping algorithm. CLAMP_TO_BORDER_NV clamps texture coordinates at all mipmap levels such that NEAREST and LINEAR filters of clamped coordinates return only the constant border color. This does not add the ability for textures to specify borders using glTexImage2D, but only to clamp to a constant border value set using glTexParameter.
Requires GLES 2..
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_CLAMP_TO_BORDER_NV
Accepted by the |
| public static final int | GL_TEXTURE_BORDER_COLOR_NV
Accepted by the |
| Access | Constructor and Description |
|---|---|
| private |
| GL_CLAMP_TO_BORDER_NV | back to summary |
|---|---|
| public static final int GL_CLAMP_TO_BORDER_NV Accepted by the | |
| GL_TEXTURE_BORDER_COLOR_NV | back to summary |
|---|---|
| public static final int GL_TEXTURE_BORDER_COLOR_NV Accepted by the | |
| NVTextureBorderClamp | back to summary |
|---|---|
| private NVTextureBorderClamp() | |