Skip to content

Commit 19a29a8

Browse files
committed
Recognise some #define enums, improve pfn type gen, update SDL, more fixes
1 parent 74ddf75 commit 19a29a8

File tree

188 files changed

+38634
-20812
lines changed

Some content is hidden

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

188 files changed

+38634
-20812
lines changed

.silktouch/0afb5dc84012c2fa.stout

154 KB
Binary file not shown.

.silktouch/c8c046b328b09d23.stout

0 Bytes
Binary file not shown.

.silktouch/f634eee0bf239a81.stout

-150 KB
Binary file not shown.

eng/submodules/sdl

Submodule sdl updated 1514 files

sources/SDL/SDL/Handles/BlitMapHandle.gen.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from SDL.h and corresponding dependencies of SDL3.
4+
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.SDL;
10+
11+
public readonly unsafe partial struct DisplayModeDataHandle
12+
{
13+
public readonly void* Handle;
14+
15+
public bool Equals(DisplayModeDataHandle other) => Handle == other.Handle;
16+
17+
public override bool Equals(object? obj) => obj is DisplayModeDataHandle other && Equals(other);
18+
19+
public override int GetHashCode() => HashCode.Combine((nuint)Handle);
20+
21+
public static bool operator ==(DisplayModeDataHandle left, DisplayModeDataHandle right) =>
22+
left.Equals(right);
23+
24+
public static bool operator !=(DisplayModeDataHandle left, DisplayModeDataHandle right) =>
25+
!left.Equals(right);
26+
27+
public bool Equals(NullPtr _) => Handle is null;
28+
29+
public static bool operator ==(DisplayModeDataHandle left, NullPtr right) => left.Equals(right);
30+
31+
public static bool operator !=(DisplayModeDataHandle left, NullPtr right) =>
32+
!left.Equals(right);
33+
34+
public static implicit operator DisplayModeDataHandle(NullPtr _) => default;
35+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from SDL.h and corresponding dependencies of SDL3.
4+
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.SDL;
10+
11+
public readonly unsafe partial struct GLContextStateHandle
12+
{
13+
public readonly void* Handle;
14+
15+
public bool Equals(GLContextStateHandle other) => Handle == other.Handle;
16+
17+
public override bool Equals(object? obj) => obj is GLContextStateHandle other && Equals(other);
18+
19+
public override int GetHashCode() => HashCode.Combine((nuint)Handle);
20+
21+
public static bool operator ==(GLContextStateHandle left, GLContextStateHandle right) =>
22+
left.Equals(right);
23+
24+
public static bool operator !=(GLContextStateHandle left, GLContextStateHandle right) =>
25+
!left.Equals(right);
26+
27+
public bool Equals(NullPtr _) => Handle is null;
28+
29+
public static bool operator ==(GLContextStateHandle left, NullPtr right) => left.Equals(right);
30+
31+
public static bool operator !=(GLContextStateHandle left, NullPtr right) => !left.Equals(right);
32+
33+
public static implicit operator GLContextStateHandle(NullPtr _) => default;
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// Ported from SDL.h and corresponding dependencies of SDL3.
4+
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
5+
using System;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
9+
namespace Silk.NET.SDL;
10+
11+
public readonly unsafe partial struct SharedObjectHandle
12+
{
13+
public readonly void* Handle;
14+
15+
public bool Equals(SharedObjectHandle other) => Handle == other.Handle;
16+
17+
public override bool Equals(object? obj) => obj is SharedObjectHandle other && Equals(other);
18+
19+
public override int GetHashCode() => HashCode.Combine((nuint)Handle);
20+
21+
public static bool operator ==(SharedObjectHandle left, SharedObjectHandle right) =>
22+
left.Equals(right);
23+
24+
public static bool operator !=(SharedObjectHandle left, SharedObjectHandle right) =>
25+
!left.Equals(right);
26+
27+
public bool Equals(NullPtr _) => Handle is null;
28+
29+
public static bool operator ==(SharedObjectHandle left, NullPtr right) => left.Equals(right);
30+
31+
public static bool operator !=(SharedObjectHandle left, NullPtr right) => !left.Equals(right);
32+
33+
public static implicit operator SharedObjectHandle(NullPtr _) => default;
34+
}

sources/SDL/SDL/Handles/TextureHandle.gen.cs

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

sources/SDL/SDL/SDL3/GLcontextReleaseFlag.gen.cs renamed to sources/SDL/SDL/SDL3/AppResult.gen.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
namespace Silk.NET.SDL;
99

1010
[NativeTypeName("unsigned int")]
11-
public enum GLcontextReleaseFlag : uint
11+
public enum AppResult : uint
1212
{
13-
None = 0x0000,
14-
Flush = 0x0001,
13+
Continue,
14+
Success,
15+
Failure,
1516
}

0 commit comments

Comments
 (0)