glDrawElementspublic static void glDrawElements(int mode, int count, int type, long indices)Reference PageConstructs a sequence of geometric primitives by successively transferring elements for count vertices to the GL. The ith element transferred by DrawElements will be taken from element indices[i] (if no element array buffer is bound), or from the element whose index is stored in the currently bound element array buffer at offset indices + i. I have posted the java doc for the function in question below.Parameters:mode - the kind of primitives being constructed. One of:POINTS LINE_STRIP LINE_LOOP LINES POLYGON TRIANGLE_STRIP TRIANGLE_FANTRIANGLES QUAD_STRIP QUADS LINES_ADJACENCY LINE_STRIP_ADJACENCY TRIANGLES_ADJACENCY TRIANGLE_STRIP_ADJACENCYPATCHEScount - the number of vertices to transfer to the GLtype - indicates the type of index values in indices. One of:UNSIGNED_BYTE UNSIGNED_SHORT UNSIGNED_INTindices - the index values
...or from the element whose index is stored in the currently bound element array buffer at offset indices + i.