SDL2# - C# Wrapper for SDL2
at master 1.6 kB view raw
1This is SDL2#, a C# wrapper for SDL2. 2 3Project Website: https://github.com/flibitijibibo/SDL2-CS 4 5License 6------- 7SDL2 and SDL2# are released under the zlib license. See LICENSE for details. 8 9About SDL2 10---------- 11For more information about SDL2, visit the SDL wiki: 12 13http://wiki.libsdl.org/moin.fcg/FrontPage 14 15About the C# Wrapper 16-------------------- 17The C# wrapper was written to be used for FNA's platform support. However, this 18is written in a way that can be used for any general C# application. 19 20The wrapper provides bindings for the following libraries: 21- SDL2 22- SDL2_gfx 23- SDL2_image 24- SDL2_mixer 25- SDL2_ttf 26 27Note that SDL2# will not provide every single SDL2 function. This is due to 28limitations in the C# language that would cause major conflicts with the native 29SDL2 library and its extensions. 30 31SDL2# is a pure port of the C headers. The naming schemes for this library will 32be exactly as they are done in the C library, with little-to-no concern for 33"appropriate" C# style. The namespace indicates that this is SDL2, the class 34names will indicate which library file the function/type/value exists in, and 35everything else will be as close to the C version as technically possible. 36 37About the Visual Studio Debugger 38-------------------------------- 39When running C# applications under the Visual Studio debugger, native code that 40names threads with the 0x406D1388 exception will silently exit. To prevent this 41exception from being thrown by SDL, add this line before your SDL_Init call: 42 43SDL.SDL_SetHint(SDL.SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, "1");