eglCreateWindowSurface function

Pointer<Void> eglCreateWindowSurface(
  1. Pointer<Void> display,
  2. Pointer<Void> config,
  3. Pointer<Void> nativeWindow
)

Implementation

Pointer<Void> eglCreateWindowSurface(
  Pointer<Void> display,
  Pointer<Void> config,
  Pointer<Void> nativeWindow,
) {
  final nativeCallResult =
      _libEGL.eglCreateWindowSurface(display, config, nativeWindow, nullptr);

  if (nativeCallResult == nullptr) {
    throw EglException(
        'Failed to create window surface for display [$display], config [$config], native window [$nativeWindow].');
  }

  return nativeCallResult;
}