transformFeedbackVaryings method

dynamic transformFeedbackVaryings(
  1. dynamic program,
  2. dynamic count,
  3. List<String> varyings,
  4. dynamic bufferMode,
)

Implementation

transformFeedbackVaryings(program, count, List<String> varyings, bufferMode) {
  final varyingsPtr = calloc<Pointer<Int8>>(varyings.length);

  int i = 0;
  for (final varying in varyings) {
    varyingsPtr[i] = varying.toNativeUtf8().cast<Int8>();
    i = i + 1;
  }

  final result =
      gl.glTransformFeedbackVaryings(program, count, varyingsPtr, bufferMode);
  calloc.free(varyingsPtr);

  return result;
}