-
-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start on a more clean sheet and conservative implementation
- Loading branch information
Showing
25 changed files
with
1,366 additions
and
619 deletions.
There are no files selected for viewing
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
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
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,16 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
namespace Silk.NET.Core; | ||
|
||
/// <summary> | ||
/// Represents a source of a <see cref="IGLContext" /> | ||
/// </summary> | ||
// Same as in 1.X/2.X, just a different namespace. | ||
public interface IGLContextSource | ||
{ | ||
/// <summary> | ||
/// The OpenGL context. | ||
/// </summary> | ||
IGLContext? GLContext { get; } | ||
} |
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. | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Silk.NET.Core; | ||
|
||
/// <summary> | ||
/// Represents a window that possesses native handles or other platform-specific information. | ||
/// </summary> | ||
public interface INativeWindow | ||
{ | ||
/// <summary> | ||
/// Attempts to obtain native platform information with type <typeparamref name="TPlatformInfo" />. | ||
/// </summary> | ||
/// <param name="info"> | ||
/// The platform-specific information, or <c>default</c> if the platform-specific information is not available for | ||
/// this platform. | ||
/// </param> | ||
/// <returns>True if <paramref name="info" /> contains the platform-specific information, false otherwise.</returns> | ||
bool TryGetPlatformInfo<TPlatformInfo>([NotNullWhen(true)] out TPlatformInfo? info); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
52 changes: 0 additions & 52 deletions
52
sources/Windowing/Common/Configuration/IGLConfiguration.cs
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
sources/Windowing/Common/Configuration/OpenGLContextFlags.cs
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
sources/Windowing/Common/Configuration/OpenGLContextProfile.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.