getAttribLocation method

dynamic getAttribLocation(
  1. dynamic program,
  2. String name
)

Implementation

getAttribLocation(program, String name) {
  final locationName = name.toNativeUtf8();
  final location = gl.glGetAttribLocation(program, locationName.cast<Int8>());
  calloc.free(locationName);
  return location;
}