useProgram method

void useProgram(
  1. int slot
)

Implementation

void useProgram(int slot) {
  if (slot == currentProgram) return;
  currentProgram = slot;
  final gl = Engine.flutterGlPlugin.gl;
  gl.useProgram(programsHandle[slot]);
  prepareSlots(programsHandle[slot], gl);
  return;
  /*gl
    ..bindBuffer(gl.ELEMENT_ARRAY_BUFFER, JFlat.ibo)
    ..enable(gl.PRIMITIVE_RESTART_FIXED_INDEX)
    ..enableVertexAttribArray(JShader.positionSlot)
    ..enableVertexAttribArray(JShader.textureSlot)
    ..enableVertexAttribArray(JShader.colorSlot);

   */
}