eglMakeCurrent method

dynamic eglMakeCurrent(
  1. int display,
  2. int draw,
  3. int read,
  4. int context,
)

Implementation

eglMakeCurrent(
  int display,
  int draw,
  int read,
  int context,
) {
  var _v = egl.eglMakeCurrent(display, draw, read, context);

  final nativeCallResult = _v == 1;

  if (nativeCallResult) {
    return;
  }

  throw ('Failed to make current using display [$display], draw [$draw], read [$read], context [$context].');
}