draw
open fun draw(mvpMatrix: Array<Float>, color: Array<Float>, vertexBuffer: FloatBuffer, firstVertex: Int, vertexCount: Int, coordsPerVertex: Int, vertexStride: Int)
Issues the draw call. Does the full setup on every call.
Parameters
mvp Matrix
The 4x4 projection matrix.
color
A 4-element color vector.
vertex Buffer
Buffer with vertex data.
first Vertex
Index of first vertex to use in vertexBuffer.
vertex Count
Number of vertices in vertexBuffer.
coords Per Vertex
The number of coordinates per vertex (e.g. x,y is 2).
vertex Stride
Width, in bytes, of the data for each vertex (often vertexCount * sizeof(float)).