gldtShaderSource function

void gldtShaderSource(
  1. int shader,
  2. String source
)

Implementation

void gldtShaderSource(int shader, String source) {
  var utf8Pointer = calloc<Pointer<Utf8>>();
  var utf8 = source.toNativeUtf8();
  utf8Pointer.value = utf8;
  glShaderSource(shader, 1, utf8Pointer, nullptr);
  calloc.free(utf8Pointer);
  calloc.free(utf8);
}