useProgram

fun useProgram(program: KglProgram)

Makes an OpenGL program object active as part of current rendering state. This has no effect if the specified program object is already active. The default is program 0, indicating that no program is active.

Parameters

program

the name of the OpenGL program object to make active, or 0 to make no program active