Class GL20

    • Method Detail

      • glCreateProgram

        public static int glCreateProgram()

        OpenGL SDK Reference

        Creates a program object.
      • glDeleteProgram

        public static void glDeleteProgram(int program)

        OpenGL SDK Reference

        Deletes a program object.
        Parameters:
        program - the program object to be deleted
      • glIsProgram

        public static boolean glIsProgram(int program)

        OpenGL SDK Reference

        Returns TRUE if program is the name of a program object. If program is zero, or a non-zero value that is not the name of a program object, IsProgram returns FALSE. No error is generated if program is not a valid program object name.
        Parameters:
        program - the program object name to query
      • glDeleteShader

        public static void glDeleteShader(int shader)

        OpenGL SDK Reference

        Deletes a shader object.
        Parameters:
        shader - the shader object to be deleted
      • glIsShader

        public static boolean glIsShader(int shader)

        OpenGL SDK Reference

        Returns TRUE if shader is the name of a shader object. If shader is zero, or a nonzero value that is not the name of a shader object, IsShader returns FALSE. No error is generated if shader is not a valid shader object name.
        Parameters:
        shader - the shader object name to query
      • glAttachShader

        public static void glAttachShader(int program,
                                          int shader)

        OpenGL SDK Reference

        Attaches a shader object to a program object.

        In order to create a complete shader program, there must be a way to specify the list of things that will be linked together. Program objects provide this mechanism. Shaders that are to be linked together in a program object must first be attached to that program object. glAttachShader attaches the shader object specified by shader to the program object specified by program. This indicates that shader will be included in link operations that will be performed on program.

        All operations that can be performed on a shader object are valid whether or not the shader object is attached to a program object. It is permissible to attach a shader object to a program object before source code has been loaded into the shader object or before the shader object has been compiled. It is permissible to attach multiple shader objects of the same type because each may contain a portion of the complete shader. It is also permissible to attach a shader object to more than one program object. If a shader object is deleted while it is attached to a program object, it will be flagged for deletion, and deletion will not occur until glDetachShader is called to detach it from all program objects to which it is attached.

        Parameters:
        program - the program object to which a shader object will be attached
        shader - the shader object that is to be attached
      • glDetachShader

        public static void glDetachShader(int program,
                                          int shader)

        OpenGL SDK Reference

        Detaches a shader object from a program object to which it is attached.
        Parameters:
        program - the program object from which to detach the shader object
        shader - the shader object to be detached
      • glShaderSource

        public static void glShaderSource(int shader,
                                          org.lwjgl.PointerBuffer strings,
                                          java.nio.IntBuffer length)

        OpenGL SDK Reference

        Sets the source code in shader to the source code in the array of strings specified by strings. Any source code previously stored in the shader object is completely replaced. The number of strings in the array is specified by count. If length is NULL, each string is assumed to be null terminated. If length is a value other than NULL, it points to an array containing a string length for each of the corresponding elements of strings. Each element in the length array may contain the length of the corresponding string (the null character is not counted as part of the string length) or a value less than 0 to indicate that the string is null terminated. The source code strings are not scanned or parsed at this time; they are simply copied into the specified shader object.
        Parameters:
        shader - the shader object whose source code is to be replaced
        strings - an array of pointers to strings containing the source code to be loaded into the shader
        length - an array of string lengths
      • glShaderSource

        public static void glShaderSource(int shader,
                                          java.lang.CharSequence... strings)

        OpenGL SDK Reference

        Sets the source code in shader to the source code in the array of strings specified by strings. Any source code previously stored in the shader object is completely replaced. The number of strings in the array is specified by count. If length is NULL, each string is assumed to be null terminated. If length is a value other than NULL, it points to an array containing a string length for each of the corresponding elements of strings. Each element in the length array may contain the length of the corresponding string (the null character is not counted as part of the string length) or a value less than 0 to indicate that the string is null terminated. The source code strings are not scanned or parsed at this time; they are simply copied into the specified shader object.
        Parameters:
        shader - the shader object whose source code is to be replaced
        strings - an array of pointers to strings containing the source code to be loaded into the shader
      • glShaderSource

        public static void glShaderSource(int shader,
                                          java.lang.CharSequence string)

        OpenGL SDK Reference

        Sets the source code in shader to the source code in the array of strings specified by strings. Any source code previously stored in the shader object is completely replaced. The number of strings in the array is specified by count. If length is NULL, each string is assumed to be null terminated. If length is a value other than NULL, it points to an array containing a string length for each of the corresponding elements of strings. Each element in the length array may contain the length of the corresponding string (the null character is not counted as part of the string length) or a value less than 0 to indicate that the string is null terminated. The source code strings are not scanned or parsed at this time; they are simply copied into the specified shader object.
        Parameters:
        shader - the shader object whose source code is to be replaced
      • glCompileShader

        public static void glCompileShader(int shader)

        OpenGL SDK Reference

        Compiles a shader object.
        Parameters:
        shader - the shader object to be compiled
      • glLinkProgram

        public static void glLinkProgram(int program)

        OpenGL SDK Reference

        Links a program object.
        Parameters:
        program - the program object to be linked
      • glUseProgram

        public static void glUseProgram(int program)

        OpenGL SDK Reference

        Installs a program object as part of current rendering state.
        Parameters:
        program - the program object whose executables are to be used as part of current rendering state
      • glValidateProgram

        public static void glValidateProgram(int program)

        OpenGL SDK Reference

        Validates a program object.
        Parameters:
        program - the program object to be validated
      • glUniform1f

        public static void glUniform1f(int location,
                                       float v0)

        OpenGL SDK Reference

        Specifies the value of a float uniform variable for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        v0 - the uniform value
      • glUniform2f

        public static void glUniform2f(int location,
                                       float v0,
                                       float v1)

        OpenGL SDK Reference

        Specifies the value of a vec2 uniform variable for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        v0 - the uniform x value
        v1 - the uniform y value
      • glUniform3f

        public static void glUniform3f(int location,
                                       float v0,
                                       float v1,
                                       float v2)

        OpenGL SDK Reference

        Specifies the value of a vec3 uniform variable for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        v0 - the uniform x value
        v1 - the uniform y value
        v2 - the uniform z value
      • glUniform4f

        public static void glUniform4f(int location,
                                       float v0,
                                       float v1,
                                       float v2,
                                       float v3)

        OpenGL SDK Reference

        Specifies the value of a vec4 uniform variable for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        v0 - the uniform x value
        v1 - the uniform y value
        v2 - the uniform z value
        v3 - the uniform w value
      • glUniform1i

        public static void glUniform1i(int location,
                                       int v0)

        OpenGL SDK Reference

        Specifies the value of an int uniform variable for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        v0 - the uniform value
      • glUniform2i

        public static void glUniform2i(int location,
                                       int v0,
                                       int v1)

        OpenGL SDK Reference

        Specifies the value of an ivec2 uniform variable for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        v0 - the uniform x value
        v1 - the uniform y value
      • glUniform3i

        public static void glUniform3i(int location,
                                       int v0,
                                       int v1,
                                       int v2)

        OpenGL SDK Reference

        Specifies the value of an ivec3 uniform variable for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        v0 - the uniform x value
        v1 - the uniform y value
        v2 - the uniform z value
      • glUniform4i

        public static void glUniform4i(int location,
                                       int v0,
                                       int v1,
                                       int v2,
                                       int v3)

        OpenGL SDK Reference

        Specifies the value of an ivec4 uniform variable for the current program object.
        Parameters:
        location - the location of the uniform variable to be modified
        v0 - the uniform x value
        v1 - the uniform y value
        v2 - the uniform z value
        v3 - the uniform w value
      • glUniform1fv

        public static void glUniform1fv(int location,
                                        java.nio.FloatBuffer value)

        OpenGL SDK Reference

        Specifies the value of a single float uniform variable or a float 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
      • glUniform2fv

        public static void glUniform2fv(int location,
                                        java.nio.FloatBuffer value)

        OpenGL SDK Reference

        Specifies the value of a single vec2 uniform variable or a vec2 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
      • glUniform3fv

        public static void glUniform3fv(int location,
                                        java.nio.FloatBuffer value)

        OpenGL SDK Reference

        Specifies the value of a single vec3 uniform variable or a vec3 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
      • glUniform4fv

        public static void glUniform4fv(int location,
                                        java.nio.FloatBuffer value)

        OpenGL SDK Reference

        Specifies the value of a single vec4 uniform variable or a vec4 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
      • glUniform1iv

        public static void glUniform1iv(int location,
                                        java.nio.IntBuffer value)

        OpenGL SDK Reference

        Specifies the value of a single int uniform variable or a int 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
      • glUniform2iv

        public static void glUniform2iv(int location,
                                        java.nio.IntBuffer value)

        OpenGL SDK Reference

        Specifies the value of a single ivec2 uniform variable or an ivec2 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
      • glUniform3iv

        public static void glUniform3iv(int location,
                                        java.nio.IntBuffer value)

        OpenGL SDK Reference

        Specifies the value of a single ivec3 uniform variable or an ivec3 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
      • glUniform4iv

        public static void glUniform4iv(int location,
                                        java.nio.IntBuffer value)

        OpenGL SDK Reference

        Specifies the value of a single ivec4 uniform variable or an ivec4 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
      • glUniformMatrix2fv

        public static void glUniformMatrix2fv(int location,
                                              boolean transpose,
                                              java.nio.FloatBuffer value)

        OpenGL SDK Reference

        Specifies the value of a single mat2 uniform variable or a mat2 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 variable
      • glUniformMatrix3fv

        public static void glUniformMatrix3fv(int location,
                                              boolean transpose,
                                              java.nio.FloatBuffer value)

        OpenGL SDK Reference

        Specifies the value of a single mat3 uniform variable or a mat3 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 variable
      • glUniformMatrix4fv

        public static void glUniformMatrix4fv(int location,
                                              boolean transpose,
                                              java.nio.FloatBuffer value)

        OpenGL SDK Reference

        Specifies the value of a single mat4 uniform variable or a mat4 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 variable
      • glGetShaderInfoLog

        public static void glGetShaderInfoLog(int shader,
                                              java.nio.IntBuffer length,
                                              java.nio.ByteBuffer infoLog)

        OpenGL SDK Reference

        Returns the information log for a shader object.
        Parameters:
        shader - the shader object whose information log is to be queried
        length - the length of the string returned in infoLog (excluding the null terminator)
        infoLog - an array of characters that is used to return the information log
      • glGetShaderInfoLog

        public static java.lang.String glGetShaderInfoLog(int shader,
                                                          int maxLength)

        OpenGL SDK Reference

        Returns the information log for a shader object.
        Parameters:
        shader - the shader object whose information log is to be queried
        maxLength - the size of the character buffer for storing the returned information log
      • glGetShaderInfoLog

        public static java.lang.String glGetShaderInfoLog(int shader)

        OpenGL SDK Reference

        Returns the information log for a shader object.
        Parameters:
        shader - the shader object whose information log is to be queried
      • glGetProgramInfoLog

        public static void glGetProgramInfoLog(int program,
                                               java.nio.IntBuffer length,
                                               java.nio.ByteBuffer infoLog)

        OpenGL SDK Reference

        Returns the information log for a program object.
        Parameters:
        program - the program object whose information log is to be queried
        length - the length of the string returned in infoLog (excluding the null terminator)
        infoLog - an array of characters that is used to return the information log
      • glGetProgramInfoLog

        public static java.lang.String glGetProgramInfoLog(int program,
                                                           int maxLength)

        OpenGL SDK Reference

        Returns the information log for a program object.
        Parameters:
        program - the program object whose information log is to be queried
        maxLength - the size of the character buffer for storing the returned information log
      • glGetProgramInfoLog

        public static java.lang.String glGetProgramInfoLog(int program)

        OpenGL SDK Reference

        Returns the information log for a program object.
        Parameters:
        program - the program object whose information log is to be queried
      • glGetAttachedShaders

        public static void glGetAttachedShaders(int program,
                                                java.nio.IntBuffer count,
                                                java.nio.IntBuffer shaders)

        OpenGL SDK Reference

        Returns the shader objects attached to a program object.
        Parameters:
        program - the program object to be queried
        count - the number of names actually returned in shaders
        shaders - an array that is used to return the names of attached shader objects
      • glGetUniformLocation

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

        OpenGL SDK Reference

        Returns the location of a uniform variable.
        Parameters:
        program - the program object to be queried
        name - a null terminated string containing the name of the uniform variable whose location is to be queried
      • glGetActiveUniform

        public static void glGetActiveUniform(int program,
                                              int index,
                                              java.nio.IntBuffer length,
                                              java.nio.IntBuffer size,
                                              java.nio.IntBuffer type,
                                              java.nio.ByteBuffer name)

        OpenGL SDK Reference

        Returns information about an active uniform variable for the specified program object.
        Parameters:
        program - the program object to be queried
        index - the index of the uniform variable to be queried
        length - the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed
        size - the size of the uniform variable
        type - the data type of the uniform variable
        name - a null terminated string containing the name of the uniform variable
      • glGetActiveUniform

        public static java.lang.String glGetActiveUniform(int program,
                                                          int index,
                                                          int maxLength,
                                                          java.nio.IntBuffer size,
                                                          java.nio.IntBuffer type)

        OpenGL SDK Reference

        Returns information about an active uniform variable for the specified program object.
        Parameters:
        program - the program object to be queried
        index - the index of the uniform variable to be queried
        maxLength - the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name
        size - the size of the uniform variable
        type - the data type of the uniform variable
      • glGetActiveUniform

        public static java.lang.String glGetActiveUniform(int program,
                                                          int index,
                                                          java.nio.IntBuffer size,
                                                          java.nio.IntBuffer type)

        OpenGL SDK Reference

        Returns information about an active uniform variable for the specified program object.
        Parameters:
        program - the program object to be queried
        index - the index of the uniform variable to be queried
        size - the size of the uniform variable
        type - the data type of the uniform variable
      • glGetUniformfv

        public static void glGetUniformfv(int program,
                                          int location,
                                          java.nio.FloatBuffer params)

        OpenGL SDK Reference

        Returns the float 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
      • glGetUniformf

        public static float glGetUniformf(int program,
                                          int location)

        OpenGL SDK Reference

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

        public static void glGetUniformiv(int program,
                                          int location,
                                          java.nio.IntBuffer params)

        OpenGL SDK Reference

        Returns the int 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
      • glGetUniformi

        public static int glGetUniformi(int program,
                                        int location)

        OpenGL SDK Reference

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

        public static void glGetShaderSource(int shader,
                                             java.nio.IntBuffer length,
                                             java.nio.ByteBuffer source)

        OpenGL SDK Reference

        Returns the source code string from a shader object.
        Parameters:
        shader - the shader object to be queried
        length - the length of the string returned in source (excluding the null terminator)
        source - an array of characters that is used to return the source code string
      • glGetShaderSource

        public static java.lang.String glGetShaderSource(int shader,
                                                         int maxLength)

        OpenGL SDK Reference

        Returns the source code string from a shader object.
        Parameters:
        shader - the shader object to be queried
        maxLength - the size of the character buffer for storing the returned source code string
      • glGetShaderSource

        public static java.lang.String glGetShaderSource(int shader)

        OpenGL SDK Reference

        Returns the source code string from a shader object.
        Parameters:
        shader - the shader object to be queried
      • glVertexAttrib1f

        public static void glVertexAttrib1f(int index,
                                            float v0)

        OpenGL SDK Reference

        Specifies the value of a generic vertex attribute. The y and z components are implicitly set to 0.0f and w to 1.0f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
      • glVertexAttrib1s

        public static void glVertexAttrib1s(int index,
                                            short v0)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
      • glVertexAttrib1d

        public static void glVertexAttrib1d(int index,
                                            double v0)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
      • glVertexAttrib2f

        public static void glVertexAttrib2f(int index,
                                            float v0,
                                            float v1)

        OpenGL SDK Reference

        Specifies the value of a generic vertex attribute. The y component is implicitly set to 0.0f and w to 1.0f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
        v1 - the vertex attribute y component
      • glVertexAttrib2s

        public static void glVertexAttrib2s(int index,
                                            short v0,
                                            short v1)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
        v1 - the vertex attribute y component
      • glVertexAttrib2d

        public static void glVertexAttrib2d(int index,
                                            double v0,
                                            double v1)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
        v1 - the vertex attribute y component
      • glVertexAttrib3f

        public static void glVertexAttrib3f(int index,
                                            float v0,
                                            float v1,
                                            float v2)

        OpenGL SDK Reference

        Specifies the value of a generic vertex attribute. The w is implicitly set to 1.0f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
        v1 - the vertex attribute y component
        v2 - the vertex attribute z component
      • glVertexAttrib3s

        public static void glVertexAttrib3s(int index,
                                            short v0,
                                            short v1,
                                            short v2)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
        v1 - the vertex attribute y component
        v2 - the vertex attribute z component
      • glVertexAttrib3d

        public static void glVertexAttrib3d(int index,
                                            double v0,
                                            double v1,
                                            double v2)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
        v1 - the vertex attribute y component
        v2 - the vertex attribute z component
      • glVertexAttrib4f

        public static void glVertexAttrib4f(int index,
                                            float v0,
                                            float v1,
                                            float v2,
                                            float v3)

        OpenGL SDK Reference

        Specifies the value of a generic vertex attribute.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
        v1 - the vertex attribute y component
        v2 - the vertex attribute z component
        v3 - the vertex attribute w component
      • glVertexAttrib4s

        public static void glVertexAttrib4s(int index,
                                            short v0,
                                            short v1,
                                            short v2,
                                            short v3)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
        v1 - the vertex attribute y component
        v2 - the vertex attribute z component
        v3 - the vertex attribute w component
      • glVertexAttrib4d

        public static void glVertexAttrib4d(int index,
                                            double v0,
                                            double v1,
                                            double v2,
                                            double v3)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
        v1 - the vertex attribute y component
        v2 - the vertex attribute z component
        v3 - the vertex attribute w component
      • glVertexAttrib4Nub

        public static void glVertexAttrib4Nub(int index,
                                              byte x,
                                              byte y,
                                              byte z,
                                              byte w)

        OpenGL SDK Reference

        Normalized unsigned byte version of VertexAttrib4f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        x - the vertex attribute x component
        y - the vertex attribute y component
        z - the vertex attribute z component
        w - the vertex attribute w component
      • glVertexAttrib1fv

        public static void glVertexAttrib1fv(int index,
                                             java.nio.FloatBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib1sv

        public static void glVertexAttrib1sv(int index,
                                             java.nio.ShortBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib1dv

        public static void glVertexAttrib1dv(int index,
                                             java.nio.DoubleBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib2fv

        public static void glVertexAttrib2fv(int index,
                                             java.nio.FloatBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib2sv

        public static void glVertexAttrib2sv(int index,
                                             java.nio.ShortBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib2dv

        public static void glVertexAttrib2dv(int index,
                                             java.nio.DoubleBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib3fv

        public static void glVertexAttrib3fv(int index,
                                             java.nio.FloatBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib3sv

        public static void glVertexAttrib3sv(int index,
                                             java.nio.ShortBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib3dv

        public static void glVertexAttrib3dv(int index,
                                             java.nio.DoubleBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4fv

        public static void glVertexAttrib4fv(int index,
                                             java.nio.FloatBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4sv

        public static void glVertexAttrib4sv(int index,
                                             java.nio.ShortBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4dv

        public static void glVertexAttrib4dv(int index,
                                             java.nio.DoubleBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4iv

        public static void glVertexAttrib4iv(int index,
                                             java.nio.IntBuffer v)

        OpenGL SDK Reference

        Integer pointer version of VertexAttrib4f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4bv

        public static void glVertexAttrib4bv(int index,
                                             java.nio.ByteBuffer v)

        OpenGL SDK Reference

        Byte pointer version of VertexAttrib4f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4ubv

        public static void glVertexAttrib4ubv(int index,
                                              java.nio.ByteBuffer v)
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4usv

        public static void glVertexAttrib4usv(int index,
                                              java.nio.ShortBuffer v)

        OpenGL SDK Reference

        Unsigned short pointer version of VertexAttrib4f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4uiv

        public static void glVertexAttrib4uiv(int index,
                                              java.nio.IntBuffer v)

        OpenGL SDK Reference

        Unsigned int pointer version of VertexAttrib4f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4Nbv

        public static void glVertexAttrib4Nbv(int index,
                                              java.nio.ByteBuffer v)

        OpenGL SDK Reference

        Normalized byte pointer version of VertexAttrib4f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4Nsv

        public static void glVertexAttrib4Nsv(int index,
                                              java.nio.ShortBuffer v)

        OpenGL SDK Reference

        Normalized short pointer version of VertexAttrib4f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4Niv

        public static void glVertexAttrib4Niv(int index,
                                              java.nio.IntBuffer v)

        OpenGL SDK Reference

        Normalized int pointer version of VertexAttrib4f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4Nubv

        public static void glVertexAttrib4Nubv(int index,
                                               java.nio.ByteBuffer v)

        OpenGL SDK Reference

        Normalized unsigned byte pointer version of VertexAttrib4f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4Nusv

        public static void glVertexAttrib4Nusv(int index,
                                               java.nio.ShortBuffer v)

        OpenGL SDK Reference

        Normalized unsigned short pointer version of VertexAttrib4f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4Nuiv

        public static void glVertexAttrib4Nuiv(int index,
                                               java.nio.IntBuffer v)

        OpenGL SDK Reference

        Normalized unsigned int pointer version of VertexAttrib4f.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttribPointer

        public static void glVertexAttribPointer(int index,
                                                 int size,
                                                 int type,
                                                 boolean normalized,
                                                 int stride,
                                                 java.nio.ByteBuffer pointer)
        
        public static void glVertexAttribPointer(int index,
                                                 int size,
                                                 int type,
                                                 boolean normalized,
                                                 int stride,
                                                 long pointer)
        
        public static void glVertexAttribPointer(int index,
                                                 int size,
                                                 int type,
                                                 boolean normalized,
                                                 int stride,
                                                 java.nio.ShortBuffer pointer)
        
        public static void glVertexAttribPointer(int index,
                                                 int size,
                                                 int type,
                                                 boolean normalized,
                                                 int stride,
                                                 java.nio.IntBuffer pointer)
        
        public static void glVertexAttribPointer(int index,
                                                 int size,
                                                 int type,
                                                 boolean normalized,
                                                 int stride,
                                                 java.nio.FloatBuffer pointer)
        

        OpenGL SDK Reference

        Specifies the location and organization of a vertex attribute array.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        size - the number of values per vertex that are stored in the array. The initial value is 4. One of:
        1234BGRA
        type - the data type of each component in the array. The initial value is GL_FLOAT. One of:
        BYTEUNSIGNED_BYTESHORTUNSIGNED_SHORTINTUNSIGNED_INTHALF_FLOATFLOAT
        DOUBLEUNSIGNED_INT_2_10_10_10_REVINT_2_10_10_10_REVFIXED
        normalized - whether fixed-point data values should be normalized or converted directly as fixed-point values when they are accessed
        stride - the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0.
        pointer - the vertex attribute data or the offset of the first component of the first generic vertex attribute in the array in the data store of the buffer currently bound to the ARRAY_BUFFER target. The initial value is 0.
      • glEnableVertexAttribArray

        public static void glEnableVertexAttribArray(int index)

        OpenGL SDK Reference

        Enables a generic vertex attribute array.
        Parameters:
        index - the index of the generic vertex attribute to be enabled
      • glDisableVertexAttribArray

        public static void glDisableVertexAttribArray(int index)

        OpenGL SDK Reference

        Disables a generic vertex attribute array.
        Parameters:
        index - the index of the generic vertex attribute to be disabled
      • glBindAttribLocation

        public static void glBindAttribLocation(int program,
                                                int index,
                                                java.nio.ByteBuffer name)
        
        public static void glBindAttribLocation(int program,
                                                int index,
                                                java.lang.CharSequence name)
        

        OpenGL SDK Reference

        Associates a generic vertex attribute index with a named attribute variable.
        Parameters:
        program - the program object in which the association is to be made
        index - the index of the generic vertex attribute to be bound
        name - a null terminated string containing the name of the vertex shader attribute variable to which index is to be bound
      • glGetActiveAttrib

        public static void glGetActiveAttrib(int program,
                                             int index,
                                             java.nio.IntBuffer length,
                                             java.nio.IntBuffer size,
                                             java.nio.IntBuffer type,
                                             java.nio.ByteBuffer name)

        OpenGL SDK Reference

        Returns information about an active attribute variable for the specified program object.
        Parameters:
        program - the program object to be queried
        index - the index of the attribute variable to be queried
        length - the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed
        size - the size of the attribute variable
        type - the data type of the attribute variable
        name - a null terminated string containing the name of the attribute variable
      • glGetActiveAttrib

        public static java.lang.String glGetActiveAttrib(int program,
                                                         int index,
                                                         int maxLength,
                                                         java.nio.IntBuffer size,
                                                         java.nio.IntBuffer type)

        OpenGL SDK Reference

        Returns information about an active attribute variable for the specified program object.
        Parameters:
        program - the program object to be queried
        index - the index of the attribute variable to be queried
        maxLength - the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name
        size - the size of the attribute variable
        type - the data type of the attribute variable
      • glGetActiveAttrib

        public static java.lang.String glGetActiveAttrib(int program,
                                                         int index,
                                                         java.nio.IntBuffer size,
                                                         java.nio.IntBuffer type)

        OpenGL SDK Reference

        Returns information about an active attribute variable for the specified program object.
        Parameters:
        program - the program object to be queried
        index - the index of the attribute variable to be queried
        size - the size of the attribute variable
        type - the data type of the attribute variable
      • glGetAttribLocation

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

        OpenGL SDK Reference

        Returns the location of an attribute variable.
        Parameters:
        program - the program object to be queried
        name - a null terminated string containing the name of the attribute variable whose location is to be queried
      • glGetVertexAttribfv

        public static void glGetVertexAttribfv(int index,
                                               int pname,
                                               java.nio.FloatBuffer params)
        Parameters:
        index - the generic vertex attribute parameter to be queried
        pname - the symbolic name of the vertex attribute parameter to be queried
        params - returns the requested data
      • glGetVertexAttribdv

        public static void glGetVertexAttribdv(int index,
                                               int pname,
                                               java.nio.DoubleBuffer params)
        Parameters:
        index - the generic vertex attribute parameter to be queried
        pname - the symbolic name of the vertex attribute parameter to be queried
        params - returns the requested data
      • glGetVertexAttribPointerv

        public static void glGetVertexAttribPointerv(int index,
                                                     int pname,
                                                     org.lwjgl.PointerBuffer pointer)

        OpenGL SDK Reference

        Returns the address of the specified generic vertex attribute pointer.
        Parameters:
        index - the generic vertex attribute parameter to be queried
        pname - the symbolic name of the generic vertex attribute parameter to be returned. Must be:
        VERTEX_ATTRIB_ARRAY_POINTER
        pointer - the pointer value
      • glGetVertexAttribPointer

        public static long glGetVertexAttribPointer(int index,
                                                    int pname)

        OpenGL SDK Reference

        Returns the address of the specified generic vertex attribute pointer.
        Parameters:
        index - the generic vertex attribute parameter to be queried
        pname - the symbolic name of the generic vertex attribute parameter to be returned. Must be:
        VERTEX_ATTRIB_ARRAY_POINTER
      • glDrawBuffers

        public static void glDrawBuffers(int buf)

        OpenGL SDK Reference

        Specifies a list of color buffers to be drawn into.
      • glBlendEquationSeparate

        public static void glBlendEquationSeparate(int modeRGB,
                                                   int modeAlpha)

        OpenGL SDK Reference

        Sets the RGB blend equation and the alpha blend equation separately.
        Parameters:
        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
      • glStencilOpSeparate

        public static void glStencilOpSeparate(int face,
                                               int sfail,
                                               int dpfail,
                                               int dppass)

        OpenGL SDK Reference

        Sets front and/or back stencil test actions.
        Parameters:
        face - whether front and/or back stencil state is updated. One of:
        FRONTBACKFRONT_AND_BACK
        sfail - the action to take when the stencil test fails. The initial value is GL_KEEP. One of:
        KEEPZEROREPLACEINCRINCR_WRAPDECRDECR_WRAPINVERT
        dpfail - the stencil action when the stencil test passes, but the depth test fails. The initial value is GL_KEEP
        dppass - the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. The initial value is GL_KEEP
      • glStencilFuncSeparate

        public static void glStencilFuncSeparate(int face,
                                                 int func,
                                                 int ref,
                                                 int mask)

        OpenGL SDK Reference

        Sets front and/or back function and reference value for stencil testing.
        Parameters:
        face - whether front and/or back stencil state is updated. One of:
        FRONTBACKFRONT_AND_BACK
        func - the test function. The initial value is GL_ALWAYS. One of:
        NEVERLESSLEQUALGREATERGEQUALEQUALNOTEQUALALWAYS
        ref - the reference value for the stencil test. ref is clamped to the range [0, 2n – 1], where n is the number of bitplanes in the stencil buffer. The initial value is 0.
        mask - a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's.
      • glStencilMaskSeparate

        public static void glStencilMaskSeparate(int face,
                                                 int mask)

        OpenGL SDK Reference

        Controls the front and/or back writing of individual bits in the stencil planes.
        Parameters:
        face - whether front and/or back stencil writemask is updated. One of:
        FRONTBACKFRONT_AND_BACK
        mask - a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's.
      • glShaderSource

        public static void glShaderSource(int shader,
                                          org.lwjgl.PointerBuffer strings,
                                          int[] length)
      • glGetActiveUniform

        public static void glGetActiveUniform(int program,
                                              int index,
                                              int[] length,
                                              int[] size,
                                              int[] type,
                                              java.nio.ByteBuffer name)
      • glVertexAttribPointer

        public static void glVertexAttribPointer(int index,
                                                 int size,
                                                 int type,
                                                 boolean normalized,
                                                 int stride,
                                                 short[] pointer)
        
        public static void glVertexAttribPointer(int index,
                                                 int size,
                                                 int type,
                                                 boolean normalized,
                                                 int stride,
                                                 int[] pointer)
        
        public static void glVertexAttribPointer(int index,
                                                 int size,
                                                 int type,
                                                 boolean normalized,
                                                 int stride,
                                                 float[] pointer)
        
      • glGetActiveAttrib

        public static void glGetActiveAttrib(int program,
                                             int index,
                                             int[] length,
                                             int[] size,
                                             int[] type,
                                             java.nio.ByteBuffer name)