Class ARBVertexShader



  • public class ARBVertexShader
    extends java.lang.Object
    Native bindings to the ARB_vertex_shader extension.

    This extension adds programmable vertex level processing to OpenGL. The application can write vertex shaders in a high level language as defined in the OpenGL Shading Language specification. A vertex shader replaces the transformation, texture coordinate generation and lighting parts of OpenGL, and it also adds texture access at the vertex level. Furthermore, management of vertex shader objects and loading generic attributes are discussed. A vertex shader object, attached to a program object, can be compiled and linked to produce an executable that runs on the vertex processor in OpenGL. This extension also defines how such an executable interacts with the fixed functionality vertex processing of OpenGL 1.4.

    Promoted to core in OpenGL 2.0.

    • Method Detail

      • glVertexAttrib1fARB

        public static void glVertexAttrib1fARB(int index,
                                               float v0)
        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
      • glVertexAttrib1sARB

        public static void glVertexAttrib1sARB(int index,
                                               short v0)
        Short version of VertexAttrib1fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
      • glVertexAttrib1dARB

        public static void glVertexAttrib1dARB(int index,
                                               double v0)
        Double version of VertexAttrib1fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
      • glVertexAttrib2fARB

        public static void glVertexAttrib2fARB(int index,
                                               float v0,
                                               float v1)
        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
      • glVertexAttrib2sARB

        public static void glVertexAttrib2sARB(int index,
                                               short v0,
                                               short v1)
        Short version of VertexAttrib2fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
        v1 - the vertex attribute y component
      • glVertexAttrib2dARB

        public static void glVertexAttrib2dARB(int index,
                                               double v0,
                                               double v1)
        Double version of VertexAttrib2fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v0 - the vertex attribute x component
        v1 - the vertex attribute y component
      • glVertexAttrib3fARB

        public static void glVertexAttrib3fARB(int index,
                                               float v0,
                                               float v1,
                                               float v2)
        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
      • glVertexAttrib3sARB

        public static void glVertexAttrib3sARB(int index,
                                               short v0,
                                               short v1,
                                               short v2)
        Short version of VertexAttrib3fARB.
        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
      • glVertexAttrib3dARB

        public static void glVertexAttrib3dARB(int index,
                                               double v0,
                                               double v1,
                                               double v2)
        Double version of VertexAttrib3fARB.
        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
      • glVertexAttrib4fARB

        public static void glVertexAttrib4fARB(int index,
                                               float v0,
                                               float v1,
                                               float v2,
                                               float v3)
        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
      • glVertexAttrib4sARB

        public static void glVertexAttrib4sARB(int index,
                                               short v0,
                                               short v1,
                                               short v2,
                                               short v3)
        Short version of VertexAttrib4fARB.
        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
      • glVertexAttrib4dARB

        public static void glVertexAttrib4dARB(int index,
                                               double v0,
                                               double v1,
                                               double v2,
                                               double v3)
        Double version of VertexAttrib4fARB.
        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
      • glVertexAttrib4NubARB

        public static void glVertexAttrib4NubARB(int index,
                                                 byte x,
                                                 byte y,
                                                 byte z,
                                                 byte w)
        Normalized unsigned byte version of VertexAttrib4fARB.
        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
      • glVertexAttrib1fvARB

        public static void glVertexAttrib1fvARB(int index,
                                                java.nio.FloatBuffer v)
        Pointer version of VertexAttrib1fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib1svARB

        public static void glVertexAttrib1svARB(int index,
                                                java.nio.ShortBuffer v)
        Pointer version of VertexAttrib1sARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib1dvARB

        public static void glVertexAttrib1dvARB(int index,
                                                java.nio.DoubleBuffer v)
        Pointer version of VertexAttrib1dARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib2fvARB

        public static void glVertexAttrib2fvARB(int index,
                                                java.nio.FloatBuffer v)
        Pointer version of VertexAttrib2fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib2svARB

        public static void glVertexAttrib2svARB(int index,
                                                java.nio.ShortBuffer v)
        Pointer version of VertexAttrib2sARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib2dvARB

        public static void glVertexAttrib2dvARB(int index,
                                                java.nio.DoubleBuffer v)
        Pointer version of VertexAttrib2dARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib3fvARB

        public static void glVertexAttrib3fvARB(int index,
                                                java.nio.FloatBuffer v)
        Pointer version of VertexAttrib3fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib3svARB

        public static void glVertexAttrib3svARB(int index,
                                                java.nio.ShortBuffer v)
        Pointer version of VertexAttrib3sARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib3dvARB

        public static void glVertexAttrib3dvARB(int index,
                                                java.nio.DoubleBuffer v)
        Pointer version of VertexAttrib3dARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4fvARB

        public static void glVertexAttrib4fvARB(int index,
                                                java.nio.FloatBuffer v)
        Pointer version of VertexAttrib4fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4svARB

        public static void glVertexAttrib4svARB(int index,
                                                java.nio.ShortBuffer v)
        Pointer version of VertexAttrib4sARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4dvARB

        public static void glVertexAttrib4dvARB(int index,
                                                java.nio.DoubleBuffer v)
        Pointer version of VertexAttrib4dARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4ivARB

        public static void glVertexAttrib4ivARB(int index,
                                                java.nio.IntBuffer v)
        Integer pointer version of VertexAttrib4fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4bvARB

        public static void glVertexAttrib4bvARB(int index,
                                                java.nio.ByteBuffer v)
        Byte pointer version of VertexAttrib4fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4ubvARB

        public static void glVertexAttrib4ubvARB(int index,
                                                 java.nio.ByteBuffer v)
        Pointer version of VertexAttrib4NubARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4usvARB

        public static void glVertexAttrib4usvARB(int index,
                                                 java.nio.ShortBuffer v)
        Unsigned short pointer version of VertexAttrib4fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4uivARB

        public static void glVertexAttrib4uivARB(int index,
                                                 java.nio.IntBuffer v)
        Unsigned int pointer version of VertexAttrib4fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4NbvARB

        public static void glVertexAttrib4NbvARB(int index,
                                                 java.nio.ByteBuffer v)
        Normalized byte pointer version of VertexAttrib4fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4NsvARB

        public static void glVertexAttrib4NsvARB(int index,
                                                 java.nio.ShortBuffer v)
        Normalized short pointer version of VertexAttrib4fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4NivARB

        public static void glVertexAttrib4NivARB(int index,
                                                 java.nio.IntBuffer v)
        Normalized int pointer version of VertexAttrib4fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4NubvARB

        public static void glVertexAttrib4NubvARB(int index,
                                                  java.nio.ByteBuffer v)
        Normalized unsigned byte pointer version of VertexAttrib4fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4NusvARB

        public static void glVertexAttrib4NusvARB(int index,
                                                  java.nio.ShortBuffer v)
        Normalized unsigned short pointer version of VertexAttrib4fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttrib4NuivARB

        public static void glVertexAttrib4NuivARB(int index,
                                                  java.nio.IntBuffer v)
        Normalized unsigned int pointer version of VertexAttrib4fARB.
        Parameters:
        index - the index of the generic vertex attribute to be modified
        v - the vertex attribute buffer
      • glVertexAttribPointerARB

        public static void glVertexAttribPointerARB(int index,
                                                    int size,
                                                    int type,
                                                    boolean normalized,
                                                    int stride,
                                                    java.nio.ByteBuffer pointer)
        
        public static void glVertexAttribPointerARB(int index,
                                                    int size,
                                                    int type,
                                                    boolean normalized,
                                                    int stride,
                                                    long pointer)
        
        public static void glVertexAttribPointerARB(int index,
                                                    int size,
                                                    int type,
                                                    boolean normalized,
                                                    int stride,
                                                    java.nio.ShortBuffer pointer)
        
        public static void glVertexAttribPointerARB(int index,
                                                    int size,
                                                    int type,
                                                    boolean normalized,
                                                    int stride,
                                                    java.nio.IntBuffer pointer)
        
        public static void glVertexAttribPointerARB(int index,
                                                    int size,
                                                    int type,
                                                    boolean normalized,
                                                    int stride,
                                                    java.nio.FloatBuffer pointer)
        
        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.
      • glEnableVertexAttribArrayARB

        public static void glEnableVertexAttribArrayARB(int index)
        Enables a generic vertex attribute array.
        Parameters:
        index - the index of the generic vertex attribute to be enabled
      • glDisableVertexAttribArrayARB

        public static void glDisableVertexAttribArrayARB(int index)
        Disables a generic vertex attribute array.
        Parameters:
        index - the index of the generic vertex attribute to be disabled
      • glBindAttribLocationARB

        public static void glBindAttribLocationARB(int programObj,
                                                   int index,
                                                   java.nio.ByteBuffer name)
        
        public static void glBindAttribLocationARB(int programObj,
                                                   int index,
                                                   java.lang.CharSequence name)
        
        Associates a generic vertex attribute index with a named attribute variable.
        Parameters:
        programObj - the handle of 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
      • glGetActiveAttribARB

        public static void glGetActiveAttribARB(int programObj,
                                                int index,
                                                java.nio.IntBuffer length,
                                                java.nio.IntBuffer size,
                                                java.nio.IntBuffer type,
                                                java.nio.ByteBuffer name)
        Returns information about an active attribute variable for the specified program object.
        Parameters:
        programObj - 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
      • glGetActiveAttribARB

        public static java.lang.String glGetActiveAttribARB(int programObj,
                                                            int index,
                                                            int maxLength,
                                                            java.nio.IntBuffer size,
                                                            java.nio.IntBuffer type)
        Returns information about an active attribute variable for the specified program object.
        Parameters:
        programObj - 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
      • glGetActiveAttribARB

        public static java.lang.String glGetActiveAttribARB(int programObj,
                                                            int index,
                                                            java.nio.IntBuffer size,
                                                            java.nio.IntBuffer type)
        Returns information about an active attribute variable for the specified program object.
        Parameters:
        programObj - 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
      • glGetAttribLocationARB

        public static int glGetAttribLocationARB(int programObj,
                                                 java.nio.ByteBuffer name)
        
        public static int glGetAttribLocationARB(int programObj,
                                                 java.lang.CharSequence name)
        
        Returns the location of an attribute variable.
        Parameters:
        programObj - the program object to be queried
        name - a null terminated string containing the name of the attribute variable whose location is to be queried
      • glGetVertexAttribfvARB

        public static void glGetVertexAttribfvARB(int index,
                                                  int pname,
                                                  java.nio.FloatBuffer params)
        Float version of GetVertexAttribivARB.
        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
      • glGetVertexAttribdvARB

        public static void glGetVertexAttribdvARB(int index,
                                                  int pname,
                                                  java.nio.DoubleBuffer params)
        Double version of GetVertexAttribivARB.
        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
      • glGetVertexAttribPointervARB

        public static void glGetVertexAttribPointervARB(int index,
                                                        int pname,
                                                        org.lwjgl.PointerBuffer pointer)
        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_ARB
        pointer - the pointer value
      • glGetVertexAttribPointerARB

        public static long glGetVertexAttribPointerARB(int index,
                                                       int pname)
        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_ARB
      • glVertexAttrib1fvARB

        public static void glVertexAttrib1fvARB(int index,
                                                float[] v)
        Array version of: VertexAttrib1fvARB
      • glVertexAttrib1svARB

        public static void glVertexAttrib1svARB(int index,
                                                short[] v)
        Array version of: VertexAttrib1svARB
      • glVertexAttrib1dvARB

        public static void glVertexAttrib1dvARB(int index,
                                                double[] v)
        Array version of: VertexAttrib1dvARB
      • glVertexAttrib2fvARB

        public static void glVertexAttrib2fvARB(int index,
                                                float[] v)
        Array version of: VertexAttrib2fvARB
      • glVertexAttrib2svARB

        public static void glVertexAttrib2svARB(int index,
                                                short[] v)
        Array version of: VertexAttrib2svARB
      • glVertexAttrib2dvARB

        public static void glVertexAttrib2dvARB(int index,
                                                double[] v)
        Array version of: VertexAttrib2dvARB
      • glVertexAttrib3fvARB

        public static void glVertexAttrib3fvARB(int index,
                                                float[] v)
        Array version of: VertexAttrib3fvARB
      • glVertexAttrib3svARB

        public static void glVertexAttrib3svARB(int index,
                                                short[] v)
        Array version of: VertexAttrib3svARB
      • glVertexAttrib3dvARB

        public static void glVertexAttrib3dvARB(int index,
                                                double[] v)
        Array version of: VertexAttrib3dvARB
      • glVertexAttrib4fvARB

        public static void glVertexAttrib4fvARB(int index,
                                                float[] v)
        Array version of: VertexAttrib4fvARB
      • glVertexAttrib4svARB

        public static void glVertexAttrib4svARB(int index,
                                                short[] v)
        Array version of: VertexAttrib4svARB
      • glVertexAttrib4dvARB

        public static void glVertexAttrib4dvARB(int index,
                                                double[] v)
        Array version of: VertexAttrib4dvARB
      • glVertexAttrib4ivARB

        public static void glVertexAttrib4ivARB(int index,
                                                int[] v)
        Array version of: VertexAttrib4ivARB
      • glVertexAttrib4usvARB

        public static void glVertexAttrib4usvARB(int index,
                                                 short[] v)
        Array version of: VertexAttrib4usvARB
      • glVertexAttrib4uivARB

        public static void glVertexAttrib4uivARB(int index,
                                                 int[] v)
        Array version of: VertexAttrib4uivARB
      • glVertexAttrib4NsvARB

        public static void glVertexAttrib4NsvARB(int index,
                                                 short[] v)
        Array version of: VertexAttrib4NsvARB
      • glVertexAttrib4NivARB

        public static void glVertexAttrib4NivARB(int index,
                                                 int[] v)
        Array version of: VertexAttrib4NivARB
      • glVertexAttrib4NusvARB

        public static void glVertexAttrib4NusvARB(int index,
                                                  short[] v)
        Array version of: VertexAttrib4NusvARB
      • glVertexAttrib4NuivARB

        public static void glVertexAttrib4NuivARB(int index,
                                                  int[] v)
        Array version of: VertexAttrib4NuivARB
      • glVertexAttribPointerARB

        public static void glVertexAttribPointerARB(int index,
                                                    int size,
                                                    int type,
                                                    boolean normalized,
                                                    int stride,
                                                    short[] pointer)
        
        public static void glVertexAttribPointerARB(int index,
                                                    int size,
                                                    int type,
                                                    boolean normalized,
                                                    int stride,
                                                    int[] pointer)
        
        public static void glVertexAttribPointerARB(int index,
                                                    int size,
                                                    int type,
                                                    boolean normalized,
                                                    int stride,
                                                    float[] pointer)
        
        Array version of: VertexAttribPointerARB
      • glGetActiveAttribARB

        public static void glGetActiveAttribARB(int programObj,
                                                int index,
                                                int[] length,
                                                int[] size,
                                                int[] type,
                                                java.nio.ByteBuffer name)
        Array version of: GetActiveAttribARB
      • glGetVertexAttribivARB

        public static void glGetVertexAttribivARB(int index,
                                                  int pname,
                                                  int[] params)
        Array version of: GetVertexAttribivARB
      • glGetVertexAttribfvARB

        public static void glGetVertexAttribfvARB(int index,
                                                  int pname,
                                                  float[] params)
        Array version of: GetVertexAttribfvARB
      • glGetVertexAttribdvARB

        public static void glGetVertexAttribdvARB(int index,
                                                  int pname,
                                                  double[] params)
        Array version of: GetVertexAttribdvARB