Skip to content

Commit a1c0f23

Browse files
committed
Revert "Revert after review: Revert all generated bindings changes"
This reverts commit 9c9fbfc.
1 parent fac347c commit a1c0f23

File tree

3,172 files changed

+1066989
-1013528
lines changed

Some content is hidden

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

3,172 files changed

+1066989
-1013528
lines changed

sources/OpenAL/OpenAL/AL.gen.cs

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

sources/OpenAL/OpenAL/ALContext.gen.cs

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

sources/OpenAL/OpenAL/Al.gen.cs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
// Generated using the OpenAL Soft headers and corresponding dependencies.
4+
// Original source is licensed under the LGPL 2.0 license. Please note that while bindings are able to be MIT due to
5+
// being header-derived only, implementations of the headers may have a less permissive license.
6+
using System;
7+
using System.Diagnostics;
8+
using System.Reflection;
9+
using System.Runtime.CompilerServices;
10+
using System.Runtime.InteropServices;
11+
using Silk.NET.Core.Loader;
12+
13+
namespace Silk.NET.OpenAL;
14+
15+
partial class Al(INativeContext nativeContext) : IDisposable
16+
{
17+
public partial class DllImport : IAl.Static
18+
{
19+
static DllImport() => LoaderInterface.RegisterHook(Assembly.GetExecutingAssembly());
20+
}
21+
22+
public partial class ThisThread : IAl.Static
23+
{
24+
public static ThreadLocal<IAl> Underlying { get; } = new(ContextFactory);
25+
26+
public static void MakeCurrent(IAl ctx) => Underlying.Value = ctx;
27+
28+
private static partial IAl ContextFactory();
29+
}
30+
31+
private readonly unsafe void*[] _slots = new void*[297];
32+
33+
public static IAl Create(INativeContext ctx) => new Al(ctx);
34+
35+
/// <inheritdoc/>
36+
public void Dispose() => nativeContext.Dispose();
37+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
// Generated using the OpenAL Soft headers and corresponding dependencies.
4+
// Original source is licensed under the LGPL 2.0 license. Please note that while bindings are able to be MIT due to
5+
// being header-derived only, implementations of the headers may have a less permissive license.
6+
using System;
7+
using System.Diagnostics;
8+
using System.Reflection;
9+
using System.Runtime.CompilerServices;
10+
using System.Runtime.InteropServices;
11+
using Silk.NET.Core.Loader;
12+
13+
namespace Silk.NET.OpenAL;
14+
15+
partial class AlContext(INativeContext nativeContext) : IDisposable
16+
{
17+
public partial class DllImport : IAlContext.Static
18+
{
19+
static DllImport() => LoaderInterface.RegisterHook(Assembly.GetExecutingAssembly());
20+
}
21+
22+
public partial class ThisThread : IAlContext.Static
23+
{
24+
public static ThreadLocal<IAlContext> Underlying { get; } = new(ContextFactory);
25+
26+
public static void MakeCurrent(IAlContext ctx) => Underlying.Value = ctx;
27+
28+
private static partial IAlContext ContextFactory();
29+
}
30+
31+
private readonly unsafe void*[] _slots = new void*[35];
32+
33+
public static IAlContext Create(INativeContext ctx) => new AlContext(ctx);
34+
35+
/// <inheritdoc/>
36+
public void Dispose() => nativeContext.Dispose();
37+
}

sources/OpenAL/OpenAL/Enums/ALCEnum.gen.cs

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

0 commit comments

Comments
 (0)