getActiveUniform method

ActiveInfo getActiveUniform(
  1. int v0,
  2. int v1
)

Implementation

ActiveInfo getActiveUniform(int v0, int v1) {
  var length = calloc<Int32>();
  var size = calloc<Int32>();
  var type = calloc<Uint32>();
  var name = calloc<Int8>(100);

  gl.glGetActiveUniform(v0, v1, 99, length, size, type, name);

  int _type = type.value;
  String _name = name.cast<Utf8>().toDartString();
  int _size = size.value;
  int _length = length.value;

  calloc.free(type);
  calloc.free(name);
  calloc.free(size);
  calloc.free(length);

  return ActiveInfo(_type, _name, _size);
}