Class NVTextureBorderClamp


  • public final class NVTextureBorderClamp
    extends java.lang.Object
    Native bindings to the NV_texture_border_clamp extension.

    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.0.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int GL_CLAMP_TO_BORDER_NV
      Accepted by the param parameter of TexParameteri and TexParameterf, and by the params parameter of TexParameteriv and TexParameterfv, and returned by the params parameter of GetTexParameteriv and GetTexParameterfv when their pname parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T, or TEXTURE_WRAP_R_OES.
      static int GL_TEXTURE_BORDER_COLOR_NV
      Accepted by the pname parameter of TexParameteri, TexParameterf, TexParameteriv, and TexParameterfv.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • GL_TEXTURE_BORDER_COLOR_NV

        public static final int GL_TEXTURE_BORDER_COLOR_NV
        Accepted by the pname parameter of TexParameteri, TexParameterf, TexParameteriv, and TexParameterfv.
        See Also:
        Constant Field Values
      • GL_CLAMP_TO_BORDER_NV

        public static final int GL_CLAMP_TO_BORDER_NV
        Accepted by the param parameter of TexParameteri and TexParameterf, and by the params parameter of TexParameteriv and TexParameterfv, and returned by the params parameter of GetTexParameteriv and GetTexParameterfv when their pname parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T, or TEXTURE_WRAP_R_OES.
        See Also:
        Constant Field Values