Class EXTTextureBorderClamp


  • public class EXTTextureBorderClamp
    extends java.lang.Object
    Native bindings to the EXT_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_EXT 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 and glSamplerParameter.

    Requires GLES 2.0.

    • Field Detail

      • GL_TEXTURE_BORDER_COLOR_EXT

        public static final int GL_TEXTURE_BORDER_COLOR_EXT
        Accepted by the pname parameter of TexParameteriv, TexParameterfv, SamplerParameteriv, SamplerParameterfv, TexParameterIivEXT, TexParameterIuivEXT, SamplerParameterIivEXT, SamplerParameterIuivEXT, GetTexParameteriv, GetTexParameterfv, GetTexParameterIivEXT, GetTexParameterIuivEXT, GetSamplerParameteriv, GetSamplerParameterfv, GetSamplerParameterIivEXT, and GetSamplerParameterIuivEXT.
        See Also:
        Constant Field Values
      • GL_CLAMP_TO_BORDER_EXT

        public static final int GL_CLAMP_TO_BORDER_EXT
        Accepted by the param parameter of TexParameteri, TexParameterf, SamplerParameteri and SamplerParameterf, and by the params parameter of TexParameteriv, TexParameterfv, TexParameterIivEXT, TexParameterIuivEXT, SamplerParameterIivEXT, SamplerParameterIuivEXT and returned by the params parameter of GetTexParameteriv, GetTexParameterfv, GetTexParameterIivEXT, GetTexParameterIuivEXT, GetSamplerParameteriv, GetSamplerParameterfv, GetSamplerParameterIivEXT, and GetSamplerParameterIuivEXT when their pname parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T, or TEXTURE_WRAP_R.
        See Also:
        Constant Field Values
    • Method Detail

      • nglTexParameterIivEXT

        public static void nglTexParameterIivEXT​(int target,
                                                 int pname,
                                                 long params)
      • glTexParameterIivEXT

        public static void glTexParameterIivEXT​(int target,
                                                int pname,
                                                java.nio.IntBuffer params)
      • nglTexParameterIuivEXT

        public static void nglTexParameterIuivEXT​(int target,
                                                  int pname,
                                                  long params)
      • glTexParameterIuivEXT

        public static void glTexParameterIuivEXT​(int target,
                                                 int pname,
                                                 java.nio.IntBuffer params)
      • nglGetTexParameterIivEXT

        public static void nglGetTexParameterIivEXT​(int target,
                                                    int pname,
                                                    long params)
      • glGetTexParameterIivEXT

        public static void glGetTexParameterIivEXT​(int target,
                                                   int pname,
                                                   java.nio.IntBuffer params)
      • glGetTexParameterIiEXT

        public static int glGetTexParameterIiEXT​(int target,
                                                 int pname)
      • nglGetTexParameterIuivEXT

        public static void nglGetTexParameterIuivEXT​(int target,
                                                     int pname,
                                                     long params)
      • glGetTexParameterIuivEXT

        public static void glGetTexParameterIuivEXT​(int target,
                                                    int pname,
                                                    java.nio.IntBuffer params)
      • glGetTexParameterIuiEXT

        public static int glGetTexParameterIuiEXT​(int target,
                                                  int pname)
      • nglSamplerParameterIivEXT

        public static void nglSamplerParameterIivEXT​(int sampler,
                                                     int pname,
                                                     long param)
      • glSamplerParameterIivEXT

        public static void glSamplerParameterIivEXT​(int sampler,
                                                    int pname,
                                                    java.nio.IntBuffer param)
      • nglSamplerParameterIuivEXT

        public static void nglSamplerParameterIuivEXT​(int sampler,
                                                      int pname,
                                                      long param)
      • glSamplerParameterIuivEXT

        public static void glSamplerParameterIuivEXT​(int sampler,
                                                     int pname,
                                                     java.nio.IntBuffer param)
      • nglGetSamplerParameterIivEXT

        public static void nglGetSamplerParameterIivEXT​(int sampler,
                                                        int pname,
                                                        long params)
      • glGetSamplerParameterIivEXT

        public static void glGetSamplerParameterIivEXT​(int sampler,
                                                       int pname,
                                                       java.nio.IntBuffer params)
      • glGetSamplerParameterIiEXT

        public static int glGetSamplerParameterIiEXT​(int sampler,
                                                     int pname)
      • nglGetSamplerParameterIuivEXT

        public static void nglGetSamplerParameterIuivEXT​(int sampler,
                                                         int pname,
                                                         long params)
      • glGetSamplerParameterIuivEXT

        public static void glGetSamplerParameterIuivEXT​(int sampler,
                                                        int pname,
                                                        java.nio.IntBuffer params)
      • glGetSamplerParameterIuiEXT

        public static int glGetSamplerParameterIuiEXT​(int sampler,
                                                      int pname)
      • glTexParameterIivEXT

        public static void glTexParameterIivEXT​(int target,
                                                int pname,
                                                int[] params)
        Array version of: TexParameterIivEXT
      • glTexParameterIuivEXT

        public static void glTexParameterIuivEXT​(int target,
                                                 int pname,
                                                 int[] params)
        Array version of: TexParameterIuivEXT
      • glGetTexParameterIivEXT

        public static void glGetTexParameterIivEXT​(int target,
                                                   int pname,
                                                   int[] params)
        Array version of: GetTexParameterIivEXT
      • glGetTexParameterIuivEXT

        public static void glGetTexParameterIuivEXT​(int target,
                                                    int pname,
                                                    int[] params)
        Array version of: GetTexParameterIuivEXT
      • glSamplerParameterIivEXT

        public static void glSamplerParameterIivEXT​(int sampler,
                                                    int pname,
                                                    int[] param)
        Array version of: SamplerParameterIivEXT
      • glSamplerParameterIuivEXT

        public static void glSamplerParameterIuivEXT​(int sampler,
                                                     int pname,
                                                     int[] param)
        Array version of: SamplerParameterIuivEXT
      • glGetSamplerParameterIivEXT

        public static void glGetSamplerParameterIivEXT​(int sampler,
                                                       int pname,
                                                       int[] params)
        Array version of: GetSamplerParameterIivEXT
      • glGetSamplerParameterIuivEXT

        public static void glGetSamplerParameterIuivEXT​(int sampler,
                                                        int pname,
                                                        int[] params)
        Array version of: GetSamplerParameterIuivEXT