Class GL40

    • Method Detail

      • glBlendEquationi

        public static void glBlendEquationi(int buf,
                                            int mode)

        Reference Page

        Specifies the equation used for both the RGB blend equation and the Alpha blend equation for the specified draw buffer.
        Parameters:
        buf - the index of the draw buffer for which to set the blend equation
        mode - how source and destination colors are combined. One of:
        FUNC_ADDFUNC_SUBTRACTFUNC_REVERSE_SUBTRACTMINMAX
      • glBlendEquationSeparatei

        public static void glBlendEquationSeparatei(int buf,
                                                    int modeRGB,
                                                    int modeAlpha)

        Reference Page

        Sets the RGB blend equation and the alpha blend equation separately for the specified draw buffer.
        Parameters:
        buf - the index of the draw buffer for which to set the blend equations
        modeRGB - the RGB blend equation, how the red, green, and blue components of the source and destination colors are combined. One of:
        FUNC_ADDFUNC_SUBTRACTFUNC_REVERSE_SUBTRACTMINMAX
        modeAlpha - the alpha blend equation, how the alpha component of the source and destination colors are combined. One of:
        FUNC_ADDFUNC_SUBTRACTFUNC_REVERSE_SUBTRACTMINMAX
      • glBlendFunci

        public static void glBlendFunci(int buf,
                                        int sfactor,
                                        int dfactor)

        Reference Page

        Specifies pixel arithmetic for the specified draw buffer.
        Parameters:
        buf - the index of the draw buffer for which to set the blend function
        sfactor - how the red, green, blue, and alpha source blending factors are computed
        dfactor - how the red, green, blue, and alpha destination blending factors are computed
      • glBlendFuncSeparatei

        public static void glBlendFuncSeparatei(int buf,
                                                int srcRGB,
                                                int dstRGB,
                                                int srcAlpha,
                                                int dstAlpha)

        Reference Page

        Specifies pixel arithmetic for RGB and alpha components separately for the specified draw buffer.
        Parameters:
        buf - the index of the draw buffer for which to set the blend functions
        srcRGB - how the red, green, and blue blending factors are computed
        dstRGB - how the red, green, and blue destination blending factors are computed
        srcAlpha - how the alpha source blending factor is computed
        dstAlpha - how the alpha destination blending factor is computed
      • glDrawArraysIndirect

        public static void glDrawArraysIndirect(int mode,
                                                java.nio.ByteBuffer indirect)
        
        public static void glDrawArraysIndirect(int mode,
                                                long indirect)
        
        public static void glDrawArraysIndirect(int mode,
                                                java.nio.IntBuffer indirect)
        

        Reference Page

        Renders primitives from array data, taking parameters from memory.

        glDrawArraysIndirect behaves similarly to DrawArraysInstancedBaseInstance, except that the parameters to glDrawArraysInstancedBaseInstance are stored in memory at the address given by indirect.

        The parameters addressed by indirect are packed into a structure that takes the form (in C):

         typedef struct {
             uint count;
             uint primCount;
             uint first;
             uint baseInstance; // must be 0 unless OpenGL 4.2 is supported
         } DrawArraysIndirectCommand;
         
         const DrawArraysIndirectCommand *cmd = (const DrawArraysIndirectCommand *)indirect;
         glDrawArraysInstancedBaseInstance(mode, cmd->first, cmd->count, cmd->primCount, cmd->baseInstance);
        Parameters:
        mode - what kind of primitives to render. One of:
        POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FAN
        TRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCY
        PATCHES
        indirect - a structure containing the draw parameters
      • glDrawElementsIndirect

        public static void glDrawElementsIndirect(int mode,
                                                  int type,
                                                  java.nio.ByteBuffer indirect)
        
        public static void glDrawElementsIndirect(int mode,
                                                  int type,
                                                  long indirect)
        
        public static void glDrawElementsIndirect(int mode,
                                                  int type,
                                                  java.nio.IntBuffer indirect)
        

        Reference Page

        Renders indexed primitives from array data, taking parameters from memory.

        glDrawElementsIndirect behaves similarly to DrawElementsInstancedBaseVertexBaseInstance, execpt that the parameters to glDrawElementsInstancedBaseVertexBaseInstance are stored in memory at the address given by indirect.

        The parameters addressed by indirect are packed into a structure that takes the form (in C):

         typedef struct {
             uint count;
             uint primCount;
             uint firstIndex;
             uint baseVertex;
             uint baseInstance;
         } DrawElementsIndirectCommand;

        glDrawElementsIndirect is equivalent to:

         void glDrawElementsIndirect(GLenum mode, GLenum type, const void *indirect) {
             const DrawElementsIndirectCommand *cmd  = (const DrawElementsIndirectCommand *)indirect;
             glDrawElementsInstancedBaseVertexBaseInstance(
                 mode,
                 cmd->count,
                 type,
                 cmd->firstIndex + size-of-type,
                 cmd->primCount,
                 cmd->baseVertex,
                 cmd->baseInstance
             );
         }
        Parameters:
        mode - what kind of primitives to render. One of:
        POINTSLINE_STRIPLINE_LOOPLINESPOLYGONTRIANGLE_STRIPTRIANGLE_FAN
        TRIANGLESQUAD_STRIPQUADSLINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCY
        PATCHES
        type - the type of data in the buffer bound to the ELEMENT_ARRAY_BUFFER binding. One of:
        UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
        indirect - the address of a structure containing the draw parameters
      • glUniform1d

        public static void glUniform1d(int location,
                                       double x)

        Reference Page

        Specifies the value of a double uniform variable for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        x - the uniform x value
      • glUniform2d

        public static void glUniform2d(int location,
                                       double x,
                                       double y)

        Reference Page

        Specifies the value of a dvec2 uniform variable for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        x - the uniform x value
        y - the uniform y value
      • glUniform3d

        public static void glUniform3d(int location,
                                       double x,
                                       double y,
                                       double z)

        Reference Page

        Specifies the value of a dvec3 uniform variable for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        x - the uniform x value
        y - the uniform y value
        z - the uniform z value
      • glUniform4d

        public static void glUniform4d(int location,
                                       double x,
                                       double y,
                                       double z,
                                       double w)

        Reference Page

        Specifies the value of a dvec4 uniform variable for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        x - the uniform x value
        y - the uniform y value
        z - the uniform z value
        w - the uniform w value
      • glUniform1dv

        public static void glUniform1dv(int location,
                                        java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single double uniform variable or a double uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        value - a pointer to an array of count values that will be used to update the specified uniform variable
      • glUniform2dv

        public static void glUniform2dv(int location,
                                        java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single dvec2 uniform variable or a dvec2 uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        value - a pointer to an array of count values that will be used to update the specified uniform variable
      • glUniform3dv

        public static void glUniform3dv(int location,
                                        java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single dvec3 uniform variable or a dvec3 uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        value - a pointer to an array of count values that will be used to update the specified uniform variable
      • glUniform4dv

        public static void glUniform4dv(int location,
                                        java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single dvec4 uniform variable or a dvec4 uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        value - a pointer to an array of count values that will be used to update the specified uniform variable
      • glUniformMatrix2dv

        public static void glUniformMatrix2dv(int location,
                                              boolean transpose,
                                              java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single dmat2 uniform variable or a dmat2 uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        transpose - whether to transpose the matrix as the values are loaded into the uniform variable
        value - a pointer to an array of count values that will be used to update the specified uniform matrix variable
      • glUniformMatrix3dv

        public static void glUniformMatrix3dv(int location,
                                              boolean transpose,
                                              java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single dmat3 uniform variable or a dmat3 uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        transpose - whether to transpose the matrix as the values are loaded into the uniform variable
        value - a pointer to an array of count values that will be used to update the specified uniform matrix variable
      • glUniformMatrix4dv

        public static void glUniformMatrix4dv(int location,
                                              boolean transpose,
                                              java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single dmat4 uniform variable or a dmat4 uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        transpose - whether to transpose the matrix as the values are loaded into the uniform variable
        value - a pointer to an array of count values that will be used to update the specified uniform matrix variable
      • glUniformMatrix2x3dv

        public static void glUniformMatrix2x3dv(int location,
                                                boolean transpose,
                                                java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single dmat2x3 uniform variable or a dmat2x3 uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        transpose - whether to transpose the matrix as the values are loaded into the uniform variable
        value - a pointer to an array of count values that will be used to update the specified uniform matrix variable
      • glUniformMatrix2x4dv

        public static void glUniformMatrix2x4dv(int location,
                                                boolean transpose,
                                                java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single dmat2x4 uniform variable or a dmat2x4 uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        transpose - whether to transpose the matrix as the values are loaded into the uniform variable
        value - a pointer to an array of count values that will be used to update the specified uniform matrix variable
      • glUniformMatrix3x2dv

        public static void glUniformMatrix3x2dv(int location,
                                                boolean transpose,
                                                java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single dmat3x2 uniform variable or a dmat3x2 uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        transpose - whether to transpose the matrix as the values are loaded into the uniform variable
        value - a pointer to an array of count values that will be used to update the specified uniform matrix variable
      • glUniformMatrix3x4dv

        public static void glUniformMatrix3x4dv(int location,
                                                boolean transpose,
                                                java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single dmat3x4 uniform variable or a dmat3x4 uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        transpose - whether to transpose the matrix as the values are loaded into the uniform variable
        value - a pointer to an array of count values that will be used to update the specified uniform matrix variable
      • glUniformMatrix4x2dv

        public static void glUniformMatrix4x2dv(int location,
                                                boolean transpose,
                                                java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single dmat4x2 uniform variable or a dmat4x2 uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        transpose - whether to transpose the matrix as the values are loaded into the uniform variable
        value - a pointer to an array of count values that will be used to update the specified uniform matrix variable
      • glUniformMatrix4x3dv

        public static void glUniformMatrix4x3dv(int location,
                                                boolean transpose,
                                                java.nio.DoubleBuffer value)

        Reference Page

        Specifies the value of a single dmat4x3 uniform variable or a dmat4x3 uniform variable array for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        transpose - whether to transpose the matrix as the values are loaded into the uniform variable
        value - a pointer to an array of count values that will be used to update the specified uniform matrix variable
      • glGetUniformdv

        public static void glGetUniformdv(int program,
                                          int location,
                                          java.nio.DoubleBuffer params)

        Reference Page

        Returns the double value(s) of a uniform variable.
        Parameters:
        program - the program object to be queried
        location - the location of the uniform variable to be queried
        params - the value of the specified uniform variable
      • glGetUniformd

        public static double glGetUniformd(int program,
                                           int location)

        Reference Page

        Returns the double value(s) of a uniform variable.
        Parameters:
        program - the program object to be queried
        location - the location of the uniform variable to be queried
      • glMinSampleShading

        public static void glMinSampleShading(float value)

        Reference Page

        Specifies the minimum rate at which sample shading takes place.
        Parameters:
        value - the rate at which samples are shaded within each covered pixel
      • glGetSubroutineUniformLocation

        public static int glGetSubroutineUniformLocation(int program,
                                                         int shadertype,
                                                         java.nio.ByteBuffer name)
        
        public static int glGetSubroutineUniformLocation(int program,
                                                         int shadertype,
                                                         java.lang.CharSequence name)
        

        Reference Page

        Retrieves the location of a subroutine uniform of a given shader stage within a program.
        Parameters:
        program - the name of the program containing shader stage
        shadertype - the shader stage from which to query for subroutine uniform index. One of:
        VERTEX_SHADERFRAGMENT_SHADERGEOMETRY_SHADERTESS_CONTROL_SHADER
        TESS_EVALUATION_SHADER
        name - the name of the subroutine uniform whose index to query.
      • glGetSubroutineIndex

        public static int glGetSubroutineIndex(int program,
                                               int shadertype,
                                               java.nio.ByteBuffer name)
        
        public static int glGetSubroutineIndex(int program,
                                               int shadertype,
                                               java.lang.CharSequence name)
        

        Reference Page

        Retrieves the index of a subroutine function of a given shader stage within a program.
        Parameters:
        program - the name of the program containing shader stage
        shadertype - the shader stage from which to query for subroutine function index. One of:
        VERTEX_SHADERFRAGMENT_SHADERGEOMETRY_SHADERTESS_CONTROL_SHADER
        TESS_EVALUATION_SHADER
        name - the name of the subroutine function whose index to query
      • glGetActiveSubroutineUniformName

        public static void glGetActiveSubroutineUniformName(int program,
                                                            int shadertype,
                                                            int index,
                                                            @Nullable
                                                            java.nio.IntBuffer length,
                                                            java.nio.ByteBuffer name)

        Reference Page

        Queries the name of an active shader subroutine uniform.
        Parameters:
        program - the name of the program containing the subroutine
        shadertype - the shader stage from which to query for the subroutine parameter. One of:
        VERTEX_SHADERFRAGMENT_SHADERGEOMETRY_SHADERTESS_CONTROL_SHADER
        TESS_EVALUATION_SHADER
        index - the index of the shader subroutine uniform
        length - the address of a variable into which is written the number of characters copied into name
        name - the address of a buffer that will receive the name of the specified shader subroutine uniform
      • glGetActiveSubroutineUniformName

        public static java.lang.String glGetActiveSubroutineUniformName(int program,
                                                                        int shadertype,
                                                                        int index,
                                                                        int bufsize)

        Reference Page

        Queries the name of an active shader subroutine uniform.
        Parameters:
        program - the name of the program containing the subroutine
        shadertype - the shader stage from which to query for the subroutine parameter. One of:
        VERTEX_SHADERFRAGMENT_SHADERGEOMETRY_SHADERTESS_CONTROL_SHADER
        TESS_EVALUATION_SHADER
        index - the index of the shader subroutine uniform
        bufsize - the size of the buffer whose address is given in name
      • glGetActiveSubroutineUniformName

        public static java.lang.String glGetActiveSubroutineUniformName(int program,
                                                                        int shadertype,
                                                                        int index)

        Reference Page

        Queries the name of an active shader subroutine uniform.
        Parameters:
        program - the name of the program containing the subroutine
        shadertype - the shader stage from which to query for the subroutine parameter. One of:
        VERTEX_SHADERFRAGMENT_SHADERGEOMETRY_SHADERTESS_CONTROL_SHADER
        TESS_EVALUATION_SHADER
        index - the index of the shader subroutine uniform
      • glGetActiveSubroutineName

        public static void glGetActiveSubroutineName(int program,
                                                     int shadertype,
                                                     int index,
                                                     @Nullable
                                                     java.nio.IntBuffer length,
                                                     java.nio.ByteBuffer name)

        Reference Page

        Queries the name of an active shader subroutine.
        Parameters:
        program - the name of the program containing the subroutine
        shadertype - the shader stage from which to query the subroutine name. One of:
        VERTEX_SHADERFRAGMENT_SHADERGEOMETRY_SHADERTESS_CONTROL_SHADER
        TESS_EVALUATION_SHADER
        index - the index of the shader subroutine uniform
        length - a variable which is to receive the length of the shader subroutine uniform name
        name - an array into which the name of the shader subroutine uniform will be written
      • glGetActiveSubroutineName

        public static java.lang.String glGetActiveSubroutineName(int program,
                                                                 int shadertype,
                                                                 int index,
                                                                 int bufsize)

        Reference Page

        Queries the name of an active shader subroutine.
        Parameters:
        program - the name of the program containing the subroutine
        shadertype - the shader stage from which to query the subroutine name. One of:
        VERTEX_SHADERFRAGMENT_SHADERGEOMETRY_SHADERTESS_CONTROL_SHADER
        TESS_EVALUATION_SHADER
        index - the index of the shader subroutine uniform
        bufsize - the size of the buffer whose address is given in name
      • glGetUniformSubroutineuiv

        public static void glGetUniformSubroutineuiv(int shadertype,
                                                     int location,
                                                     java.nio.IntBuffer params)

        Reference Page

        Retrieves the value of a subroutine uniform of a given shader stage of the current program.
        Parameters:
        shadertype - the shader stage from which to query for subroutine uniform index. One of:
        VERTEX_SHADERFRAGMENT_SHADERGEOMETRY_SHADERTESS_CONTROL_SHADER
        TESS_EVALUATION_SHADER
        location - the location of the subroutine uniform
        params - a variable to receive the value or values of the subroutine uniform
      • glPatchParameteri

        public static void glPatchParameteri(int pname,
                                             int value)

        Reference Page

        Specifies the integer value of the specified parameter for patch primitives.
        Parameters:
        pname - the name of the parameter to set. Must be:
        PATCH_VERTICES
        value - the new value for the parameter given by pname
      • glPatchParameterfv

        public static void glPatchParameterfv(int pname,
                                              java.nio.FloatBuffer values)

        Reference Page

        Specifies an array of float values for the specified parameter for patch primitives.
        Parameters:
        pname - the name of the parameter to set. One of:
        PATCH_DEFAULT_OUTER_LEVELPATCH_DEFAULT_INNER_LEVEL
        values - an array containing the new values for the parameter given by pname
      • glBindTransformFeedback

        public static void glBindTransformFeedback(int target,
                                                   int id)

        Reference Page

        Binds a transform feedback object.
        Parameters:
        target - the target to which to bind the transform feedback object id. Must be:
        TRANSFORM_FEEDBACK
        id - the name of a transform feedback object
      • glDeleteTransformFeedbacks

        public static void glDeleteTransformFeedbacks(java.nio.IntBuffer ids)

        Reference Page

        Deletes transform feedback objects.
        Parameters:
        ids - an array of names of transform feedback objects to delete
      • glDeleteTransformFeedbacks

        public static void glDeleteTransformFeedbacks(int id)

        Reference Page

        Deletes transform feedback objects.
      • glGenTransformFeedbacks

        public static void glGenTransformFeedbacks(java.nio.IntBuffer ids)

        Reference Page

        Reserves transform feedback object names.
        Parameters:
        ids - an array of into which the reserved names will be written
      • glGenTransformFeedbacks

        public static int glGenTransformFeedbacks()

        Reference Page

        Reserves transform feedback object names.
      • glIsTransformFeedback

        public static boolean glIsTransformFeedback(int id)

        Reference Page

        Determines if a name corresponds to a transform feedback object.
        Parameters:
        id - a value that may be the name of a transform feedback object
      • glPauseTransformFeedback

        public static void glPauseTransformFeedback()

        Reference Page

        Pauses transform feedback operations for the currently bound transform feedback object.

        When transform feedback operations are paused, transform feedback is still considered active and changing most transform feedback state related to the object results in an error. However, a new transform feedback object may be bound while transform feedback is paused. The error INVALID_OPERATION is generated by PauseTransformFeedback if the currently bound transform feedback is not active or is paused.

        When transform feedback is active and not paused, all geometric primitives generated must be compatible with the value of primitiveMode passed to BeginTransformFeedback. The error INVALID_OPERATION is generated by Begin or any operation that implicitly calls Begin (such as DrawElements) if mode is not one of the allowed modes. If a geometry shader is active, its output primitive type is used instead of the mode parameter passed to Begin for the purposes of this error check. Any primitive type may be used while transform feedback is paused.

      • glResumeTransformFeedback

        public static void glResumeTransformFeedback()

        Reference Page

        Resumes transform feedback operations for the currently bound transform feedback object.

        The error INVALID_OPERATION is generated by ResumeTransformFeedback if the currently bound transform feedback is not active or is not paused.

      • glUniform1dv

        public static void glUniform1dv(int location,
                                        double[] value)

        Reference Page

        Array version of: Uniform1dv
      • glUniform2dv

        public static void glUniform2dv(int location,
                                        double[] value)

        Reference Page

        Array version of: Uniform2dv
      • glUniform3dv

        public static void glUniform3dv(int location,
                                        double[] value)

        Reference Page

        Array version of: Uniform3dv
      • glUniform4dv

        public static void glUniform4dv(int location,
                                        double[] value)

        Reference Page

        Array version of: Uniform4dv
      • glUniformMatrix2dv

        public static void glUniformMatrix2dv(int location,
                                              boolean transpose,
                                              double[] value)
      • glUniformMatrix3dv

        public static void glUniformMatrix3dv(int location,
                                              boolean transpose,
                                              double[] value)
      • glUniformMatrix4dv

        public static void glUniformMatrix4dv(int location,
                                              boolean transpose,
                                              double[] value)
      • glUniformMatrix2x3dv

        public static void glUniformMatrix2x3dv(int location,
                                                boolean transpose,
                                                double[] value)
      • glUniformMatrix2x4dv

        public static void glUniformMatrix2x4dv(int location,
                                                boolean transpose,
                                                double[] value)
      • glUniformMatrix3x2dv

        public static void glUniformMatrix3x2dv(int location,
                                                boolean transpose,
                                                double[] value)
      • glUniformMatrix3x4dv

        public static void glUniformMatrix3x4dv(int location,
                                                boolean transpose,
                                                double[] value)
      • glUniformMatrix4x2dv

        public static void glUniformMatrix4x2dv(int location,
                                                boolean transpose,
                                                double[] value)
      • glUniformMatrix4x3dv

        public static void glUniformMatrix4x3dv(int location,
                                                boolean transpose,
                                                double[] value)
      • glGetUniformdv

        public static void glGetUniformdv(int program,
                                          int location,
                                          double[] params)

        Reference Page

        Array version of: GetUniformdv
      • glGetActiveSubroutineUniformiv

        public static void glGetActiveSubroutineUniformiv(int program,
                                                          int shadertype,
                                                          int index,
                                                          int pname,
                                                          int[] values)
      • glGetActiveSubroutineUniformName

        public static void glGetActiveSubroutineUniformName(int program,
                                                            int shadertype,
                                                            int index,
                                                            @Nullable
                                                            int[] length,
                                                            java.nio.ByteBuffer name)
      • glGetActiveSubroutineName

        public static void glGetActiveSubroutineName(int program,
                                                     int shadertype,
                                                     int index,
                                                     @Nullable
                                                     int[] length,
                                                     java.nio.ByteBuffer name)
      • glGetProgramStageiv

        public static void glGetProgramStageiv(int program,
                                               int shadertype,
                                               int pname,
                                               int[] values)
      • glGetQueryIndexediv

        public static void glGetQueryIndexediv(int target,
                                               int index,
                                               int pname,
                                               int[] params)