transformFeedbackVaryings method

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

Implementation

void transformFeedbackVaryings(Program program, int count, List<String> varyings, int bufferMode) {
  startCheck('transformFeedbackVaryings');
  final varyingsPtr = calloc<Pointer<Int8>>(varyings.length);
  int i = 0;
  for(final varying in varyings) {
    varyingsPtr[i] = varying.toNativeUtf8().cast<Int8>();
    i = i + 1;
  }
  gl.glTransformFeedbackVaryings(program.id, count, varyingsPtr, bufferMode);
  checkError('transformFeedbackVaryings');
  calloc.free(varyingsPtr);
}