celophi.SDL2-CS 1.0.1

dotnet add package celophi.SDL2-CS --version 1.0.1                
NuGet\Install-Package celophi.SDL2-CS -Version 1.0.1                
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="celophi.SDL2-CS" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add celophi.SDL2-CS --version 1.0.1                
#r "nuget: celophi.SDL2-CS, 1.0.1"                
#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 celophi.SDL2-CS as a Cake Addin
#addin nuget:?package=celophi.SDL2-CS&version=1.0.1

// Install celophi.SDL2-CS as a Cake Tool
#tool nuget:?package=celophi.SDL2-CS&version=1.0.1                

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

Project Website: 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
1.0.1 246 11/20/2023
1.0.0 117 11/20/2023