eglCreatePbufferFromClientBuffer function
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;
}