createProgram

fun createProgram(vertexSource: String, fragmentSource: String): Int

Creates a OpenGLES program from vertex and fragment shader sources. Will throw exception on failures since that usually indicates builder error.

Parameters

vertexSource

: String - Input vertex shader

fragmentSource

: String - Input fragment shader