useProgram method

bool useProgram(
  1. Program? program
)

Implementation

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

  return false;
}