eglCreatePbufferFromClientBuffer function

Pointer<Void> eglCreatePbufferFromClientBuffer(
  1. Pointer<Void> display,
  2. int bufferType,
  3. Pointer<Void> buffer,
  4. Pointer<Void> config,
  5. Pointer<Int32> attribList,
)

Implementation

Pointer<Void> eglCreatePbufferFromClientBuffer(
  Pointer<Void> display,
  int bufferType,
  Pointer<Void> buffer,
  Pointer<Void> config,
  Pointer<Int32> attribList,
) {
  // Using direct access to _libEGL to call eglCreatePbufferFromClientBuffer
  final nativeCallResult = _libEGL!.eglCreatePbufferFromClientBuffer(display, bufferType, buffer, config, attribList);

  if (nativeCallResult == nullptr) {
    final error = _libEGL!.eglGetError();
    throw EglException('Failed to create PBuffer from client buffer for display [$display], buffer type [$bufferType], buffer [$buffer], config [$config]. EGL error: $error');
  }
  return nativeCallResult;
}