Class OESTextureBorderClamp


  • public class OESTextureBorderClamp
    extends java.lang.Object
    Native bindings to the OES_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_OES 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_OES

        public static final int GL_TEXTURE_BORDER_COLOR_OES
        Accepted by the pname parameter of TexParameteriv, TexParameterfv, SamplerParameteriv, SamplerParameterfv, TexParameterIivOES, TexParameterIuivOES, SamplerParameterIivOES, SamplerParameterIuivOES, GetTexParameteriv, GetTexParameterfv, GetTexParameterIivOES, GetTexParameterIuivOES, GetSamplerParameteriv, GetSamplerParameterfv, GetSamplerParameterIivOES, and GetSamplerParameterIuivOES.
        See Also:
        Constant Field Values
      • GL_CLAMP_TO_BORDER_OES

        public static final int GL_CLAMP_TO_BORDER_OES
        Accepted by the param parameter of TexParameteri, TexParameterf, SamplerParameteri and SamplerParameterf, and by the params parameter of TexParameteriv, TexParameterfv, TexParameterIivOES, TexParameterIuivOES, SamplerParameterIivOES, SamplerParameterIuivOES and returned by the params parameter of GetTexParameteriv, GetTexParameterfv, GetTexParameterIivOES, GetTexParameterIuivOES, GetSamplerParameteriv, GetSamplerParameterfv, GetSamplerParameterIivOES, and GetSamplerParameterIuivOES when their pname parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T, or TEXTURE_WRAP_R.
        See Also:
        Constant Field Values
    • Method Detail

      • nglTexParameterIivOES

        public static void nglTexParameterIivOES​(int target,
                                                 int pname,
                                                 long params)
      • glTexParameterIivOES

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

        public static void glTexParameterIiOES​(int target,
                                               int pname,
                                               int param)
      • nglTexParameterIuivOES

        public static void nglTexParameterIuivOES​(int target,
                                                  int pname,
                                                  long params)
      • glTexParameterIuivOES

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

        public static void glTexParameterIuiOES​(int target,
                                                int pname,
                                                int param)
      • nglGetTexParameterIivOES

        public static void nglGetTexParameterIivOES​(int target,
                                                    int pname,
                                                    long params)
      • glGetTexParameterIivOES

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

        public static int glGetTexParameterIiOES​(int target,
                                                 int pname)
      • nglGetTexParameterIuivOES

        public static void nglGetTexParameterIuivOES​(int target,
                                                     int pname,
                                                     long params)
      • glGetTexParameterIuivOES

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

        public static int glGetTexParameterIuiOES​(int target,
                                                  int pname)
      • nglSamplerParameterIivOES

        public static void nglSamplerParameterIivOES​(int sampler,
                                                     int pname,
                                                     long params)
      • glSamplerParameterIivOES

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

        public static void glSamplerParameterIiOES​(int sampler,
                                                   int pname,
                                                   int param)
      • nglSamplerParameterIuivOES

        public static void nglSamplerParameterIuivOES​(int sampler,
                                                      int pname,
                                                      long params)
      • glSamplerParameterIuivOES

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

        public static void glSamplerParameterIuiOES​(int sampler,
                                                    int pname,
                                                    int param)
      • nglGetSamplerParameterIivOES

        public static void nglGetSamplerParameterIivOES​(int sampler,
                                                        int pname,
                                                        long params)
      • glGetSamplerParameterIivOES

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

        public static int glGetSamplerParameterIiOES​(int sampler,
                                                     int pname)
      • nglGetSamplerParameterIuivOES

        public static void nglGetSamplerParameterIuivOES​(int sampler,
                                                         int pname,
                                                         long params)
      • glGetSamplerParameterIuivOES

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

        public static int glGetSamplerParameterIuiOES​(int sampler,
                                                      int pname)
      • glTexParameterIivOES

        public static void glTexParameterIivOES​(int target,
                                                int pname,
                                                int[] params)
        Array version of: TexParameterIivOES
      • glTexParameterIuivOES

        public static void glTexParameterIuivOES​(int target,
                                                 int pname,
                                                 int[] params)
        Array version of: TexParameterIuivOES
      • glGetTexParameterIivOES

        public static void glGetTexParameterIivOES​(int target,
                                                   int pname,
                                                   int[] params)
        Array version of: GetTexParameterIivOES
      • glGetTexParameterIuivOES

        public static void glGetTexParameterIuivOES​(int target,
                                                    int pname,
                                                    int[] params)
        Array version of: GetTexParameterIuivOES
      • glSamplerParameterIivOES

        public static void glSamplerParameterIivOES​(int sampler,
                                                    int pname,
                                                    int[] params)
        Array version of: SamplerParameterIivOES
      • glSamplerParameterIuivOES

        public static void glSamplerParameterIuivOES​(int sampler,
                                                     int pname,
                                                     int[] params)
        Array version of: SamplerParameterIuivOES
      • glGetSamplerParameterIivOES

        public static void glGetSamplerParameterIivOES​(int sampler,
                                                       int pname,
                                                       int[] params)
        Array version of: GetSamplerParameterIivOES
      • glGetSamplerParameterIuivOES

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