getAttribLocation method

UniformLocation getAttribLocation(
  1. Program program,
  2. String name
)

Implementation

UniformLocation getAttribLocation(Program program, String name) {
  startCheck('getAttribLocation');
  final locationName = name.toNativeUtf8();
  final location = gl.glGetAttribLocation(program.id, locationName.cast());
  checkError('getAttribLocation');
  calloc.free(locationName);
  return UniformLocation(location);
}