-
-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
228 changed files
with
97,733 additions
and
82 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
Oops, something went wrong.