Skip to content

Commit d745734

Browse files
committed
Partial SDL_gpu bindings
1 parent 859737b commit d745734

File tree

3 files changed

+764
-46
lines changed

3 files changed

+764
-46
lines changed

README

+3-44
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,7 @@
1-
This is SDL2#, a C# wrapper for SDL2.
1+
Wrapper for SDL2, with added (partial) SDL_gpu support.
22

3-
Project Website: https://github.com/flibitijibibo/SDL2-CS
3+
Forked from: https://github.com/flibitijibibo/SDL2-CS
44

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

SDL2-CS.csproj

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -77,6 +77,7 @@
7777
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
7878
<ItemGroup>
7979
<Compile Include="src\SDL2.cs" />
80+
<Compile Include="src\SDL2_gpu.cs" />
8081
<Compile Include="src\SDL2_image.cs" />
8182
<Compile Include="src\SDL2_mixer.cs" />
8283
<Compile Include="src\SDL2_ttf.cs" />
@@ -89,4 +90,4 @@
8990
<ItemGroup>
9091
<Reference Include="System" />
9192
</ItemGroup>
92-
</Project>
93+
</Project>

0 commit comments

Comments
 (0)