Skip to content

Commit

Permalink
Some more bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Perksey committed Oct 2, 2024
1 parent 851f85b commit 05a0f69
Show file tree
Hide file tree
Showing 228 changed files with 97,733 additions and 82 deletions.
Binary file modified .silktouch/33127b0b72527d00.stout
Binary file not shown.
16,069 changes: 16,069 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/ISdl.gen.cs

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_ArrayOrder.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.Scancode;

namespace Silk.NET.SDL;

[NativeTypeName("unsigned int")]
public enum ArrayOrder : uint
{
None,
Rgb,
Rgba,
Argb,
Bgr,
Bgra,
Abgr,
}
39 changes: 39 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_AssertData.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.ChromaLocation;
using static Silk.NET.SDL.ColorPrimaries;
using static Silk.NET.SDL.ColorRange;
using static Silk.NET.SDL.ColorType;
using static Silk.NET.SDL.MatrixCoefficients;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.Scancode;
using static Silk.NET.SDL.TransferCharacteristics;

namespace Silk.NET.SDL;

public unsafe partial struct AssertData
{
[NativeTypeName("SDL_bool")]
public int AlwaysIgnore;

[NativeTypeName("unsigned int")]
public uint TriggerCount;

[NativeTypeName("const char *")]
public sbyte* Condition;

[NativeTypeName("const char *")]
public sbyte* Filename;
public int Linenum;

[NativeTypeName("const char *")]
public sbyte* Function;

[NativeTypeName("const struct SDL_AssertData *")]
public AssertData* Next;
}
27 changes: 27 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_AssertState.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.ChromaLocation;
using static Silk.NET.SDL.ColorPrimaries;
using static Silk.NET.SDL.ColorRange;
using static Silk.NET.SDL.ColorType;
using static Silk.NET.SDL.MatrixCoefficients;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.Scancode;
using static Silk.NET.SDL.TransferCharacteristics;

namespace Silk.NET.SDL;

[NativeTypeName("unsigned int")]
public enum AssertState : uint
{
Retry,
Break,
Abort,
Ignore,
AlwaysIgnore,
}
22 changes: 22 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_AtomicInt.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.ChromaLocation;
using static Silk.NET.SDL.ColorPrimaries;
using static Silk.NET.SDL.ColorRange;
using static Silk.NET.SDL.ColorType;
using static Silk.NET.SDL.MatrixCoefficients;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.Scancode;
using static Silk.NET.SDL.TransferCharacteristics;

namespace Silk.NET.SDL;

public partial struct AtomicInt
{
public int Value;
}
43 changes: 43 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_AudioDeviceEvent.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.ChromaLocation;
using static Silk.NET.SDL.ColorPrimaries;
using static Silk.NET.SDL.ColorRange;
using static Silk.NET.SDL.ColorType;
using static Silk.NET.SDL.MatrixCoefficients;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.Scancode;
using static Silk.NET.SDL.TransferCharacteristics;

namespace Silk.NET.SDL;

public partial struct AudioDeviceEvent
{
public EventType Type;

[NativeTypeName("Uint32")]
public uint Reserved;

[NativeTypeName("Uint64")]
public ulong Timestamp;

[NativeTypeName("SDL_AudioDeviceID")]
public uint Which;

[NativeTypeName("Uint8")]
public byte Iscapture;

[NativeTypeName("Uint8")]
public byte Padding1;

[NativeTypeName("Uint8")]
public byte Padding2;

[NativeTypeName("Uint8")]
public byte Padding3;
}
19 changes: 19 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_AudioSpec.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.Scancode;

namespace Silk.NET.SDL;

public partial struct AudioSpec
{
[NativeTypeName("SDL_AudioFormat")]
public ushort Format;
public int Channels;
public int Freq;
}
25 changes: 25 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_BitmapOrder.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.ChromaLocation;
using static Silk.NET.SDL.ColorPrimaries;
using static Silk.NET.SDL.ColorRange;
using static Silk.NET.SDL.ColorType;
using static Silk.NET.SDL.MatrixCoefficients;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.Scancode;
using static Silk.NET.SDL.TransferCharacteristics;

namespace Silk.NET.SDL;

[NativeTypeName("unsigned int")]
public enum BitmapOrder : uint
{
BitmaporderNone,
Bitmaporder4321,
Bitmaporder1234,
}
32 changes: 32 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_BlendFactor.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.ChromaLocation;
using static Silk.NET.SDL.ColorPrimaries;
using static Silk.NET.SDL.ColorRange;
using static Silk.NET.SDL.ColorType;
using static Silk.NET.SDL.MatrixCoefficients;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.Scancode;
using static Silk.NET.SDL.TransferCharacteristics;

namespace Silk.NET.SDL;

[NativeTypeName("unsigned int")]
public enum BlendFactor : uint
{
Zero = 0x1,
One = 0x2,
SrcColor = 0x3,
OneMinusSrcColor = 0x4,
SrcAlpha = 0x5,
OneMinusSrcAlpha = 0x6,
DstColor = 0x7,
OneMinusDstColor = 0x8,
DstAlpha = 0x9,
OneMinusDstAlpha = 0xA,
}
28 changes: 28 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_BlendMode.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.ChromaLocation;
using static Silk.NET.SDL.ColorPrimaries;
using static Silk.NET.SDL.ColorRange;
using static Silk.NET.SDL.ColorType;
using static Silk.NET.SDL.MatrixCoefficients;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.Scancode;
using static Silk.NET.SDL.TransferCharacteristics;

namespace Silk.NET.SDL;

[NativeTypeName("unsigned int")]
public enum BlendMode : uint
{
None = 0x00000000,
Blend = 0x00000001,
Add = 0x00000002,
Mod = 0x00000004,
Mul = 0x00000008,
Invalid = 0x7FFFFFFF,
}
27 changes: 27 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_BlendOperation.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.ChromaLocation;
using static Silk.NET.SDL.ColorPrimaries;
using static Silk.NET.SDL.ColorRange;
using static Silk.NET.SDL.ColorType;
using static Silk.NET.SDL.MatrixCoefficients;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.Scancode;
using static Silk.NET.SDL.TransferCharacteristics;

namespace Silk.NET.SDL;

[NativeTypeName("unsigned int")]
public enum BlendOperation : uint
{
Add = 0x1,
Subtract = 0x2,
RevSubtract = 0x3,
Minimum = 0x4,
Maximum = 0x5,
}
36 changes: 36 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_CameraDeviceEvent.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.ArrayOrder;
using static Silk.NET.SDL.BitmapOrder;
using static Silk.NET.SDL.ChromaLocation;
using static Silk.NET.SDL.ColorPrimaries;
using static Silk.NET.SDL.ColorRange;
using static Silk.NET.SDL.ColorType;
using static Silk.NET.SDL.MatrixCoefficients;
using static Silk.NET.SDL.PackedLayout;
using static Silk.NET.SDL.PackedOrder;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.PixelType;
using static Silk.NET.SDL.Scancode;
using static Silk.NET.SDL.TransferCharacteristics;

namespace Silk.NET.SDL;

public partial struct CameraDeviceEvent
{
public EventType Type;

[NativeTypeName("Uint32")]
public uint Reserved;

[NativeTypeName("Uint64")]
public ulong Timestamp;

[NativeTypeName("SDL_CameraDeviceID")]
public uint Which;
}
15 changes: 15 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_CameraPosition.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System.Runtime.CompilerServices;

namespace Silk.NET.SDL;

[NativeTypeName("unsigned int")]
public enum CameraPosition : uint
{
Unknown,
FrontFacing,
BackFacing,
}
20 changes: 20 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_CameraSpec.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.Scancode;

namespace Silk.NET.SDL;

public partial struct CameraSpec
{
public PixelFormatEnum Format;
public int Width;
public int Height;
public int IntervalNumerator;
public int IntervalDenominator;
}
26 changes: 26 additions & 0 deletions sources/SDL/SDL/SDL3/SDL3/SDL_ChromaLocation.gen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Ported from SDL.h and corresponding dependencies of SDL3.
// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using static Silk.NET.SDL.ChromaLocation;
using static Silk.NET.SDL.ColorPrimaries;
using static Silk.NET.SDL.ColorRange;
using static Silk.NET.SDL.ColorType;
using static Silk.NET.SDL.MatrixCoefficients;
using static Silk.NET.SDL.PenAxis;
using static Silk.NET.SDL.Scancode;
using static Silk.NET.SDL.TransferCharacteristics;

namespace Silk.NET.SDL;

[NativeTypeName("unsigned int")]
public enum ChromaLocation : uint
{
None = 0,
Left = 1,
Center = 2,
Topleft = 3,
}
Loading

0 comments on commit 05a0f69

Please sign in to comment.