useProgram method

dynamic useProgram(
  1. dynamic program
)

Implementation

useProgram(program) {
  if (currentProgram != program) {
    gl.useProgram(program);
    currentProgram = program;
    return true;
  }

  return false;
}