prepareSlots method

void prepareSlots(
  1. dynamic programHandle,
  2. dynamic gl
)

Implementation

void prepareSlots(dynamic programHandle, gl) {
  positionSlot = gl.getAttribLocation(programHandle, 'vPosition');
  textureSlot = gl.getAttribLocation(programHandle, 'vTex');
  colorSlot = gl.getAttribLocation(programHandle, 'vColor');
  //bindtexture = gl.getUniformLocation(programHandle, 'tTexture');
  //print('bindtexture slot: $bindtexture');
  cameraSlot = gl.getUniformLocation(programHandle, 'camera');
}