FlatShadedProgram

GL program and supporting functions for flat-shaded rendering.

Constructors

Link copied to clipboard
constructor()
Prepares the program in the current EGL context.

Functions

Link copied to clipboard
open fun draw(mvpMatrix: Array<Float>, color: Array<Float>, vertexBuffer: FloatBuffer, firstVertex: Int, vertexCount: Int, coordsPerVertex: Int, vertexStride: Int)
Issues the draw call.
Link copied to clipboard
open fun release()
Releases the program.