Skip to content

Commit fdae685

Browse files
committed
Update SDL2 code. And a few bug fixes.
1 parent 2864607 commit fdae685

File tree

260 files changed

+154495
-91136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

260 files changed

+154495
-91136
lines changed

Hexa.NET.SDL2/AssemblyInfo.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
[assembly: System.Runtime.CompilerServices.DisableRuntimeMarshalling]
1+
using HexaGen.Runtime;
2+
3+
#if NET7_0_OR_GREATER
4+
[assembly: System.Runtime.CompilerServices.DisableRuntimeMarshalling]
5+
#endif
6+
7+
[assembly: NativeLibrary("SDL2", TargetPlatform.Windows)]
8+
[assembly: NativeLibrary("libSDL2-2.0", TargetPlatform.Linux)]
9+
[assembly: NativeLibrary("libSDL2-2.0", TargetPlatform.Android)]
10+
[assembly: NativeLibrary("libSDL2-2.0", TargetPlatform.OSX)]

Hexa.NET.SDL2/Generated/Constants.000.cs renamed to Hexa.NET.SDL2/Generated/Constants/Constants.000.cs

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,6 @@ namespace Hexa.NET.SDL2
1414
{
1515
public unsafe partial class SDL
1616
{
17-
[NativeName(NativeNameType.Const, "_MSC_VER")]
18-
[NativeName(NativeNameType.Value, "1930")]
19-
public const int _MSC_VER = 1930;
20-
21-
[NativeName(NativeNameType.Const, "_WIN32")]
22-
[NativeName(NativeNameType.Value, "1")]
23-
public const int _WIN32 = 1;
24-
25-
[NativeName(NativeNameType.Const, "_M_AMD64")]
26-
[NativeName(NativeNameType.Value, "100")]
27-
public const int _M_AMD64 = 100;
28-
29-
[NativeName(NativeNameType.Const, "_M_X64")]
30-
[NativeName(NativeNameType.Value, "100")]
31-
public const int _M_X64 = 100;
32-
33-
[NativeName(NativeNameType.Const, "_WIN64")]
34-
[NativeName(NativeNameType.Value, "1")]
35-
public const int _WIN64 = 1;
36-
3717
[NativeName(NativeNameType.Const, "NULL")]
3818
[NativeName(NativeNameType.Value, "0")]
3919
public const int NULL = 0;
@@ -1391,8 +1371,8 @@ public unsafe partial class SDL
13911371
public const int SDL_MINOR_VERSION = 30;
13921372

13931373
[NativeName(NativeNameType.Const, "SDL_PATCHLEVEL")]
1394-
[NativeName(NativeNameType.Value, "5")]
1395-
public const int SDL_PATCHLEVEL = 5;
1374+
[NativeName(NativeNameType.Value, "6")]
1375+
public const int SDL_PATCHLEVEL = 6;
13961376

13971377
[NativeName(NativeNameType.Const, "SDL_INIT_TIMER")]
13981378
[NativeName(NativeNameType.Value, "0x00000001u")]
@@ -26923,8 +26903,8 @@ public unsafe partial class SDL
2692326903
public const int GL_FOG_SPECULAR_TEXTURE_WIN = 0x80EC;
2692426904

2692526905
[NativeName(NativeNameType.Const, "SDL_REVISION")]
26926-
[NativeName(NativeNameType.Value, "\"SDL-release-2.30.5-0-g2eef7ca47\"")]
26927-
public const string SDL_REVISION = "SDL-release-2.30.5-0-g2eef7ca47";
26906+
[NativeName(NativeNameType.Value, "\"\"")]
26907+
public const string SDL_REVISION = "";
2692826908

2692926909
[NativeName(NativeNameType.Const, "SDL_REVISION_NUMBER")]
2693026910
[NativeName(NativeNameType.Value, "0")]

Hexa.NET.SDL2/Generated/Delegates.000.cs

Lines changed: 0 additions & 5016 deletions
This file was deleted.

Hexa.NET.SDL2/Generated/Delegates.001.cs

Lines changed: 0 additions & 5018 deletions
This file was deleted.

Hexa.NET.SDL2/Generated/Delegates.002.cs

Lines changed: 0 additions & 3988 deletions
This file was deleted.

Hexa.NET.SDL2/Generated/Delegates/Delegates.000.cs

Lines changed: 5020 additions & 0 deletions
Large diffs are not rendered by default.

Hexa.NET.SDL2/Generated/Delegates/Delegates.001.cs

Lines changed: 5022 additions & 0 deletions
Large diffs are not rendered by default.

Hexa.NET.SDL2/Generated/Delegates/Delegates.002.cs

Lines changed: 5022 additions & 0 deletions
Large diffs are not rendered by default.

Hexa.NET.SDL2/Generated/Delegates/Delegates.003.cs

Lines changed: 5022 additions & 0 deletions
Large diffs are not rendered by default.

Hexa.NET.SDL2/Generated/Delegates/Delegates.004.cs

Lines changed: 5022 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)