SFML.Net
SFML.Net copied to clipboard
Consider using Native Library Loading
Using p/invoke with DllImportAttribute
is a bit cumbersome in a cross-platform manner.
As such, it might make sense to use the NativeLibrary class instead.
References
- https://learn.microsoft.com/en-us/dotnet/standard/native-interop/cross-platform
- https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.nativelibrary?view=net-6.0
- https://github.com/dotnet/runtime/issues/27267
- https://github.com/dotnet/runtime/issues/4216