getTransformFeedbackVarying method

dynamic getTransformFeedbackVarying(
  1. dynamic program,
  2. dynamic index
)

Implementation

getTransformFeedbackVarying(program, index) {
  int maxLen = 100;
  var length = calloc<Int32>();
  var size = calloc<Int32>();
  var type = calloc<Uint32>();
  var name = calloc<Int8>(maxLen);

  gl.glGetTransformFeedbackVarying(
      program, index, maxLen - 1, 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);
}