Class ARBBlendFuncExtended



  • public class ARBBlendFuncExtended
    extends java.lang.Object
    Native bindings to the ARB_blend_func_extended extension.

    Traditional OpenGL includes fixed-function blending that combines source colors with the existing content of a render buffer in a variety of ways. A number of extensions have enhanced this functionality by adding further sources of blending weights and methods to combine them. However, the inputs to the fixed-function blending units are constrained to a source color (as output from fragment shading), destination color (as the current content of the frame buffer) or constants that may be used in their place.

    This extension adds new blending functions whereby a fragment shader may output two colors, one of which is treated as the source color, and the other used as a blending factor for either source or destination colors. Furthermore, this extension increases orthogonality by allowing the SRC_ALPHA_SATURATE function to be used as the destination weight.

    Requires ARB_fragment_shader and EXT_gpu_shader4. Promoted to core in OpenGL 3.3.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void glBindFragDataLocationIndexed(int program, int colorNumber, int index, java.nio.ByteBuffer name)
      Binds a user-defined varying out variable to a fragment shader color number and index.
      static void glBindFragDataLocationIndexed(int program, int colorNumber, int index, java.lang.CharSequence name)
      Binds a user-defined varying out variable to a fragment shader color number and index.
      static int glGetFragDataIndex(int program, java.nio.ByteBuffer name)
      Queries the bindings of color indices to user-defined varying out variables.
      static int glGetFragDataIndex(int program, java.lang.CharSequence name)
      Queries the bindings of color indices to user-defined varying out variables.
      • Methods inherited from class java.lang.Object

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

      • glBindFragDataLocationIndexed

        public static void glBindFragDataLocationIndexed(int program,
                                                         int colorNumber,
                                                         int index,
                                                         java.nio.ByteBuffer name)
        
        public static void glBindFragDataLocationIndexed(int program,
                                                         int colorNumber,
                                                         int index,
                                                         java.lang.CharSequence name)
        
        Binds a user-defined varying out variable to a fragment shader color number and index.
        Parameters:
        program - the name of the program containing varying out variable whose binding to modify
        colorNumber - the color number to bind the user-defined varying out variable to
        index - the index of the color input to bind the user-defined varying out variable to
        name - the name of the user-defined varying out variable whose binding to modify
      • glGetFragDataIndex

        public static int glGetFragDataIndex(int program,
                                             java.nio.ByteBuffer name)
        
        public static int glGetFragDataIndex(int program,
                                             java.lang.CharSequence name)
        
        Queries the bindings of color indices to user-defined varying out variables.
        Parameters:
        program - the name of the program containing varying out variable whose binding to query
        name - the name of the user-defined varying out variable whose index to query