activeTexture method

dynamic activeTexture(
  1. int? webglSlot
)

Implementation

activeTexture(int? webglSlot) {
  webglSlot ??= gl.TEXTURE0 + maxTextures - 1;

  if (currentTextureSlot != webglSlot) {
    gl.activeTexture(webglSlot);

    currentTextureSlot = webglSlot;
  }
}