Class GL40

    • Method Detail

      • glBlendEquationi

        public static void glBlendEquationi​(int buf,
                                            int mode)
        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
        See Also:
        Reference Page
      • glBlendEquationSeparatei

        public static void glBlendEquationSeparatei​(int buf,
                                                    int modeRGB,
                                                    int modeAlpha)
        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
        See Also:
        Reference Page
      • glBlendFunci

        public static void glBlendFunci​(int buf,
                                        int sfactor,
                                        int dfactor)
        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
        See Also:
        Reference Page
      • glBlendFuncSeparatei

        public static void glBlendFuncSeparatei​(int buf,
                                                int srcRGB,
                                                int dstRGB,
                                                int srcAlpha,
                                                int dstAlpha)
        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
        See Also:
        Reference Page
      • nglDrawArraysIndirect

        public static void nglDrawArraysIndirect​(int mode,
                                                 long indirect)
        Unsafe version of: DrawArraysIndirect
      • 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)
        
        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_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
        LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
        QUAD_STRIP
        indirect - a structure containing the draw parameters
        See Also:
        Reference Page
      • nglDrawElementsIndirect

        public static void nglDrawElementsIndirect​(int mode,
                                                   int type,
                                                   long indirect)
        Unsafe version of: DrawElementsIndirect
      • 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)
        
        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_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
        LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
        QUAD_STRIP
        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
        See Also:
        Reference Page
      • glUniform1d

        public static void glUniform1d​(int location,
                                       double x)
        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
        See Also:
        Reference Page
      • glUniform2d

        public static void glUniform2d​(int location,
                                       double x,
                                       double y)
        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
        See Also:
        Reference Page
      • glUniform3d

        public static void glUniform3d​(int location,
                                       double x,
                                       double y,
                                       double z)
        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
        See Also:
        Reference Page
      • glUniform4d

        public static void glUniform4d​(int location,
                                       double x,
                                       double y,
                                       double z,
                                       double w)
        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
        See Also:
        Reference Page
      • nglUniform1dv

        public static void nglUniform1dv​(int location,
                                         int count,
                                         long value)
        Unsafe version of: Uniform1dv
        Parameters:
        count - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.
      • glUniform1dv

        public static void glUniform1dv​(int location,
                                        java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglUniform2dv

        public static void nglUniform2dv​(int location,
                                         int count,
                                         long value)
        Unsafe version of: Uniform2dv
        Parameters:
        count - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.
      • glUniform2dv

        public static void glUniform2dv​(int location,
                                        java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglUniform3dv

        public static void nglUniform3dv​(int location,
                                         int count,
                                         long value)
        Unsafe version of: Uniform3dv
        Parameters:
        count - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.
      • glUniform3dv

        public static void glUniform3dv​(int location,
                                        java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglUniform4dv

        public static void nglUniform4dv​(int location,
                                         int count,
                                         long value)
        Unsafe version of: Uniform4dv
        Parameters:
        count - the number of elements that are to be modified. This should be 1 if the targeted uniform variable is not an array, and 1 or more if it is an array.
      • glUniform4dv

        public static void glUniform4dv​(int location,
                                        java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglUniformMatrix2dv

        public static void nglUniformMatrix2dv​(int location,
                                               int count,
                                               boolean transpose,
                                               long value)
        Unsafe version of: UniformMatrix2dv
        Parameters:
        count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
      • glUniformMatrix2dv

        public static void glUniformMatrix2dv​(int location,
                                              boolean transpose,
                                              java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglUniformMatrix3dv

        public static void nglUniformMatrix3dv​(int location,
                                               int count,
                                               boolean transpose,
                                               long value)
        Unsafe version of: UniformMatrix3dv
        Parameters:
        count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
      • glUniformMatrix3dv

        public static void glUniformMatrix3dv​(int location,
                                              boolean transpose,
                                              java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglUniformMatrix4dv

        public static void nglUniformMatrix4dv​(int location,
                                               int count,
                                               boolean transpose,
                                               long value)
        Unsafe version of: UniformMatrix4dv
        Parameters:
        count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
      • glUniformMatrix4dv

        public static void glUniformMatrix4dv​(int location,
                                              boolean transpose,
                                              java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglUniformMatrix2x3dv

        public static void nglUniformMatrix2x3dv​(int location,
                                                 int count,
                                                 boolean transpose,
                                                 long value)
        Unsafe version of: UniformMatrix2x3dv
        Parameters:
        count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
      • glUniformMatrix2x3dv

        public static void glUniformMatrix2x3dv​(int location,
                                                boolean transpose,
                                                java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglUniformMatrix2x4dv

        public static void nglUniformMatrix2x4dv​(int location,
                                                 int count,
                                                 boolean transpose,
                                                 long value)
        Unsafe version of: UniformMatrix2x4dv
        Parameters:
        count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
      • glUniformMatrix2x4dv

        public static void glUniformMatrix2x4dv​(int location,
                                                boolean transpose,
                                                java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglUniformMatrix3x2dv

        public static void nglUniformMatrix3x2dv​(int location,
                                                 int count,
                                                 boolean transpose,
                                                 long value)
        Unsafe version of: UniformMatrix3x2dv
        Parameters:
        count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
      • glUniformMatrix3x2dv

        public static void glUniformMatrix3x2dv​(int location,
                                                boolean transpose,
                                                java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglUniformMatrix3x4dv

        public static void nglUniformMatrix3x4dv​(int location,
                                                 int count,
                                                 boolean transpose,
                                                 long value)
        Unsafe version of: UniformMatrix3x4dv
        Parameters:
        count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
      • glUniformMatrix3x4dv

        public static void glUniformMatrix3x4dv​(int location,
                                                boolean transpose,
                                                java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglUniformMatrix4x2dv

        public static void nglUniformMatrix4x2dv​(int location,
                                                 int count,
                                                 boolean transpose,
                                                 long value)
        Unsafe version of: UniformMatrix4x2dv
        Parameters:
        count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
      • glUniformMatrix4x2dv

        public static void glUniformMatrix4x2dv​(int location,
                                                boolean transpose,
                                                java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglUniformMatrix4x3dv

        public static void nglUniformMatrix4x3dv​(int location,
                                                 int count,
                                                 boolean transpose,
                                                 long value)
        Unsafe version of: UniformMatrix4x3dv
        Parameters:
        count - the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices.
      • glUniformMatrix4x3dv

        public static void glUniformMatrix4x3dv​(int location,
                                                boolean transpose,
                                                java.nio.DoubleBuffer value)
        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
        See Also:
        Reference Page
      • nglGetUniformdv

        public static void nglGetUniformdv​(int program,
                                           int location,
                                           long params)
        Unsafe version of: GetUniformdv
      • glGetUniformdv

        public static void glGetUniformdv​(int program,
                                          int location,
                                          java.nio.DoubleBuffer params)
        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
        See Also:
        Reference Page
      • glGetUniformd

        public static double glGetUniformd​(int program,
                                           int location)
        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
        See Also:
        Reference Page
      • glMinSampleShading

        public static void glMinSampleShading​(float value)
        Specifies the minimum rate at which sample shading takes place.
        Parameters:
        value - the rate at which samples are shaded within each covered pixel
        See Also:
        Reference Page
      • nglGetSubroutineUniformLocation

        public static int nglGetSubroutineUniformLocation​(int program,
                                                          int shadertype,
                                                          long name)
        Unsafe version of: GetSubroutineUniformLocation
      • 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)
        
        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.
        See Also:
        Reference Page
      • nglGetSubroutineIndex

        public static int nglGetSubroutineIndex​(int program,
                                                int shadertype,
                                                long name)
        Unsafe version of: GetSubroutineIndex
      • 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)
        
        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
        See Also:
        Reference Page
      • nglGetActiveSubroutineUniformiv

        public static void nglGetActiveSubroutineUniformiv​(int program,
                                                           int shadertype,
                                                           int index,
                                                           int pname,
                                                           long values)
        Unsafe version of: GetActiveSubroutineUniformiv
      • nglGetActiveSubroutineUniformName

        public static void nglGetActiveSubroutineUniformName​(int program,
                                                             int shadertype,
                                                             int index,
                                                             int bufsize,
                                                             long length,
                                                             long name)
        Parameters:
        bufsize - the size of the buffer whose address is given in name
      • glGetActiveSubroutineUniformName

        public static void glGetActiveSubroutineUniformName​(int program,
                                                            int shadertype,
                                                            int index,
                                                            @Nullable
                                                            java.nio.IntBuffer length,
                                                            java.nio.ByteBuffer name)
        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
        See Also:
        Reference Page
      • glGetActiveSubroutineUniformName

        public static java.lang.String glGetActiveSubroutineUniformName​(int program,
                                                                        int shadertype,
                                                                        int index,
                                                                        int bufsize)
        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
        See Also:
        Reference Page
      • glGetActiveSubroutineUniformName

        public static java.lang.String glGetActiveSubroutineUniformName​(int program,
                                                                        int shadertype,
                                                                        int index)
        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
        See Also:
        Reference Page
      • nglGetActiveSubroutineName

        public static void nglGetActiveSubroutineName​(int program,
                                                      int shadertype,
                                                      int index,
                                                      int bufsize,
                                                      long length,
                                                      long name)
        Unsafe version of: GetActiveSubroutineName
        Parameters:
        bufsize - the size of the buffer whose address is given in name
      • glGetActiveSubroutineName

        public static void glGetActiveSubroutineName​(int program,
                                                     int shadertype,
                                                     int index,
                                                     @Nullable
                                                     java.nio.IntBuffer length,
                                                     java.nio.ByteBuffer name)
        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
        See Also:
        Reference Page
      • glGetActiveSubroutineName

        public static java.lang.String glGetActiveSubroutineName​(int program,
                                                                 int shadertype,
                                                                 int index,
                                                                 int bufsize)
        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
        See Also:
        Reference Page
      • glGetActiveSubroutineName

        public static java.lang.String glGetActiveSubroutineName​(int program,
                                                                 int shadertype,
                                                                 int index)
        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
        See Also:
        Reference Page
      • nglUniformSubroutinesuiv

        public static void nglUniformSubroutinesuiv​(int shadertype,
                                                    int count,
                                                    long indices)
        Unsafe version of: UniformSubroutinesuiv
        Parameters:
        count - the number of uniform indices stored in indices
      • nglGetUniformSubroutineuiv

        public static void nglGetUniformSubroutineuiv​(int shadertype,
                                                      int location,
                                                      long params)
        Unsafe version of: GetUniformSubroutineuiv
      • glGetUniformSubroutineuiv

        public static void glGetUniformSubroutineuiv​(int shadertype,
                                                     int location,
                                                     java.nio.IntBuffer params)
        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
        See Also:
        Reference Page
      • nglGetProgramStageiv

        public static void nglGetProgramStageiv​(int program,
                                                int shadertype,
                                                int pname,
                                                long values)
        Unsafe version of: GetProgramStageiv
      • glPatchParameteri

        public static void glPatchParameteri​(int pname,
                                             int value)
        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
        See Also:
        Reference Page
      • nglPatchParameterfv

        public static void nglPatchParameterfv​(int pname,
                                               long values)
        Unsafe version of: PatchParameterfv
      • glPatchParameterfv

        public static void glPatchParameterfv​(int pname,
                                              java.nio.FloatBuffer values)
        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
        See Also:
        Reference Page
      • glBindTransformFeedback

        public static void glBindTransformFeedback​(int target,
                                                   int id)
        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
        See Also:
        Reference Page
      • nglDeleteTransformFeedbacks

        public static void nglDeleteTransformFeedbacks​(int n,
                                                       long ids)
        Unsafe version of: DeleteTransformFeedbacks
        Parameters:
        n - the number of transform feedback objects to delete
      • glDeleteTransformFeedbacks

        public static void glDeleteTransformFeedbacks​(java.nio.IntBuffer ids)
        Deletes transform feedback objects.
        Parameters:
        ids - an array of names of transform feedback objects to delete
        See Also:
        Reference Page
      • glDeleteTransformFeedbacks

        public static void glDeleteTransformFeedbacks​(int id)
        Deletes transform feedback objects.
        See Also:
        Reference Page
      • nglGenTransformFeedbacks

        public static void nglGenTransformFeedbacks​(int n,
                                                    long ids)
        Unsafe version of: GenTransformFeedbacks
        Parameters:
        n - the number of transform feedback object names to reserve
      • glGenTransformFeedbacks

        public static void glGenTransformFeedbacks​(java.nio.IntBuffer ids)
        Reserves transform feedback object names.
        Parameters:
        ids - an array of into which the reserved names will be written
        See Also:
        Reference Page
      • glGenTransformFeedbacks

        public static int glGenTransformFeedbacks()
        Reserves transform feedback object names.
        See Also:
        Reference Page
      • glIsTransformFeedback

        public static boolean glIsTransformFeedback​(int id)
        Determines if a name corresponds to a transform feedback object.
        Parameters:
        id - a value that may be the name of a transform feedback object
        See Also:
        Reference Page
      • glPauseTransformFeedback

        public static void glPauseTransformFeedback()
        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.

        See Also:
        Reference Page
      • glResumeTransformFeedback

        public static void glResumeTransformFeedback()
        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.

        See Also:
        Reference Page
      • nglGetQueryIndexediv

        public static void nglGetQueryIndexediv​(int target,
                                                int index,
                                                int pname,
                                                long params)
        Unsafe version of: GetQueryIndexediv
      • glDrawElementsIndirect

        public static void glDrawElementsIndirect​(int mode,
                                                  int type,
                                                  int[] indirect)
        Array version of: DrawElementsIndirect
        See Also:
        Reference Page
      • glUniform1dv

        public static void glUniform1dv​(int location,
                                        double[] value)
        Array version of: Uniform1dv
        See Also:
        Reference Page
      • glUniform2dv

        public static void glUniform2dv​(int location,
                                        double[] value)
        Array version of: Uniform2dv
        See Also:
        Reference Page
      • glUniform3dv

        public static void glUniform3dv​(int location,
                                        double[] value)
        Array version of: Uniform3dv
        See Also:
        Reference Page
      • glUniform4dv

        public static void glUniform4dv​(int location,
                                        double[] value)
        Array version of: Uniform4dv
        See Also:
        Reference Page
      • glUniformMatrix2dv

        public static void glUniformMatrix2dv​(int location,
                                              boolean transpose,
                                              double[] value)
        Array version of: UniformMatrix2dv
        See Also:
        Reference Page
      • glUniformMatrix3dv

        public static void glUniformMatrix3dv​(int location,
                                              boolean transpose,
                                              double[] value)
        Array version of: UniformMatrix3dv
        See Also:
        Reference Page
      • glUniformMatrix4dv

        public static void glUniformMatrix4dv​(int location,
                                              boolean transpose,
                                              double[] value)
        Array version of: UniformMatrix4dv
        See Also:
        Reference Page
      • glUniformMatrix2x3dv

        public static void glUniformMatrix2x3dv​(int location,
                                                boolean transpose,
                                                double[] value)
        Array version of: UniformMatrix2x3dv
        See Also:
        Reference Page
      • glUniformMatrix2x4dv

        public static void glUniformMatrix2x4dv​(int location,
                                                boolean transpose,
                                                double[] value)
        Array version of: UniformMatrix2x4dv
        See Also:
        Reference Page
      • glUniformMatrix3x2dv

        public static void glUniformMatrix3x2dv​(int location,
                                                boolean transpose,
                                                double[] value)
        Array version of: UniformMatrix3x2dv
        See Also:
        Reference Page
      • glUniformMatrix3x4dv

        public static void glUniformMatrix3x4dv​(int location,
                                                boolean transpose,
                                                double[] value)
        Array version of: UniformMatrix3x4dv
        See Also:
        Reference Page
      • glUniformMatrix4x2dv

        public static void glUniformMatrix4x2dv​(int location,
                                                boolean transpose,
                                                double[] value)
        Array version of: UniformMatrix4x2dv
        See Also:
        Reference Page
      • glUniformMatrix4x3dv

        public static void glUniformMatrix4x3dv​(int location,
                                                boolean transpose,
                                                double[] value)
        Array version of: UniformMatrix4x3dv
        See Also:
        Reference Page
      • glGetUniformdv

        public static void glGetUniformdv​(int program,
                                          int location,
                                          double[] params)
        Array version of: GetUniformdv
        See Also:
        Reference Page
      • glGetActiveSubroutineUniformiv

        public static void glGetActiveSubroutineUniformiv​(int program,
                                                          int shadertype,
                                                          int index,
                                                          int pname,
                                                          int[] values)
        See Also:
        Reference Page
      • glGetActiveSubroutineUniformName

        public static void glGetActiveSubroutineUniformName​(int program,
                                                            int shadertype,
                                                            int index,
                                                            @Nullable
                                                            int[] length,
                                                            java.nio.ByteBuffer name)
        See Also:
        Reference Page
      • glGetActiveSubroutineName

        public static void glGetActiveSubroutineName​(int program,
                                                     int shadertype,
                                                     int index,
                                                     @Nullable
                                                     int[] length,
                                                     java.nio.ByteBuffer name)
        Array version of: GetActiveSubroutineName
        See Also:
        Reference Page
      • glGetUniformSubroutineuiv

        public static void glGetUniformSubroutineuiv​(int shadertype,
                                                     int location,
                                                     int[] params)
        Array version of: GetUniformSubroutineuiv
        See Also:
        Reference Page
      • glGetProgramStageiv

        public static void glGetProgramStageiv​(int program,
                                               int shadertype,
                                               int pname,
                                               int[] values)
        Array version of: GetProgramStageiv
        See Also:
        Reference Page
      • glPatchParameterfv

        public static void glPatchParameterfv​(int pname,
                                              float[] values)
        Array version of: PatchParameterfv
        See Also:
        Reference Page
      • glGetQueryIndexediv

        public static void glGetQueryIndexediv​(int target,
                                               int index,
                                               int pname,
                                               int[] params)
        Array version of: GetQueryIndexediv
        See Also:
        Reference Page