SharpInterop.SDL2 2.24.0-beta1

This is a prerelease version of SharpInterop.SDL2.
dotnet add package SharpInterop.SDL2 --version 2.24.0-beta1
NuGet\Install-Package SharpInterop.SDL2 -Version 2.24.0-beta1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SharpInterop.SDL2" Version="2.24.0-beta1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SharpInterop.SDL2 --version 2.24.0-beta1
#r "nuget: SharpInterop.SDL2, 2.24.0-beta1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SharpInterop.SDL2 as a Cake Addin
#addin nuget:?package=SharpInterop.SDL2&version=2.24.0-beta1&prerelease

// Install SharpInterop.SDL2 as a Cake Tool
#tool nuget:?package=SharpInterop.SDL2&version=2.24.0-beta1&prerelease

This is a fork of SDL2#, a C# wrapper for SDL2.

Original Project: https://github.com/flibitijibibo/SDL2-CS

License

SDL2 and SDL2# are released under the zlib license. See LICENSE for details.

About SDL2

For more information about SDL2, visit the SDL wiki:

http://wiki.libsdl.org/moin.fcg/FrontPage

About the C# Wrapper

The C# wrapper was written to be used for FNA's platform support. However, this is written in a way that can be used for any general C# application.

The wrapper provides bindings for the following libraries:

  • SDL2
  • SDL2_gfx
  • SDL2_image
  • SDL2_mixer
  • SDL2_ttf

Note that SDL2# will not provide every single SDL2 function. This is due to limitations in the C# language that would cause major conflicts with the native SDL2 library and its extensions.

SDL2# is a pure port of the C headers. The naming schemes for this library will be exactly as they are done in the C library, with little-to-no concern for "appropriate" C# style. The namespace indicates that this is SDL2, the class names will indicate which library file the function/type/value exists in, and everything else will be as close to the C version as technically possible.

About the Visual Studio Debugger

When running C# applications under the Visual Studio debugger, native code that names threads with the 0x406D1388 exception will silently exit. To prevent this exception from being thrown by SDL, add this line before your SDL_Init call:

SDL.SDL_SetHint(SDL.SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, "1");

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.24.0-beta1 123 7/25/2022