getActiveAttrib method

dynamic getActiveAttrib(
  1. dynamic v0,
  2. dynamic v1
)

Implementation

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

  glGetActiveAttrib(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);
}