getUniformBlockIndex method

int getUniformBlockIndex(
  1. Program program,
  2. String uniformBlockName
)

Implementation

int getUniformBlockIndex(Program program, String uniformBlockName){
  var sourceString = uniformBlockName.toNativeUtf8();
  var arrayPointer = Pointer<Int8>.fromAddress(sourceString.address);
  int i = gl.glGetUniformBlockIndex(program.id, arrayPointer);
  calloc.free(arrayPointer);
  calloc.free(sourceString);
  return i;
}