draw
open fun draw(mvpMatrix: Array<Float>, vertexBuffer: FloatBuffer, firstVertex: Int, vertexCount: Int, coordsPerVertex: Int, vertexStride: Int, texMatrix: Array<Float>, texBuffer: FloatBuffer, textureId: Int, texStride: Int)
Issues the draw call. Does the full setup on every call.
Parameters
mvp Matrix
The 4x4 projection matrix.
vertex Buffer
Buffer with vertex position 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 position data for each vertex (often vertexCount * sizeof(float)).
tex Matrix
A 4x4 transformation matrix for texture coords. (Primarily intended for use with SurfaceTexture.)
tex Buffer
Buffer with vertex texture data.
tex Stride
Width, in bytes, of the texture data for each vertex.