eglSwapBuffers function

void eglSwapBuffers(
  1. Pointer<Void> display,
  2. Pointer<Void> surface
)

Implementation

void eglSwapBuffers(
  Pointer<Void> display,
  Pointer<Void> surface,
) {
  final nativeCallResult = _libEGL.eglSwapBuffers(display, surface) == 1;

  if (nativeCallResult) {
    return;
  }

  throw EglException(
      'Failed to swap buffers using display [$display], surface [$surface].');
}