getUniformLocation method

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

Implementation

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