loadDynamicFunction<FN extends Function> function

Pointer<NativeFunction<FN>> loadDynamicFunction<FN extends Function>(
  1. String name
)

Implementation

Pointer<NativeFunction<FN>> loadDynamicFunction<FN extends Function>(
    String name) {
  if (_glGetProcAddress != null) {
    final address = _glGetProcAddress!(name.toNativeUtf8());
    return Pointer<NativeFunction<FN>>.fromAddress(address);
  } else {
    return Pointer<NativeFunction<FN>>.fromAddress(0);
  }
}