mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
50
Brutal.Glfw/Generated/Libraries/Glfw.Platform.gen.cs
Normal file
50
Brutal.Glfw/Generated/Libraries/Glfw.Platform.gen.cs
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Glfw.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.GlfwApi
|
||||
{
|
||||
public static unsafe partial class Glfw
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns the platform GLFW was initialized for.
|
||||
/// </summary>
|
||||
/// <returns>One of <see cref="GlfwPlatform"/>.</returns>
|
||||
/// <remarks>
|
||||
/// <see cref="Init"/> must succeed before this method is called. If GLFW has not been initialized the
|
||||
/// returned value is undefined; check <see cref="GlfwErrorCode.NotInitialized"/> via
|
||||
/// <see cref="GetError(out string)"/>.
|
||||
/// </remarks>
|
||||
/// <possibleErrors>
|
||||
/// <see cref="GlfwErrorCode.NotInitialized"/>
|
||||
/// </possibleErrors>
|
||||
/// <threadSafety>
|
||||
/// This function may be called from any thread.
|
||||
/// </threadSafety>
|
||||
/// <seealso cref="IsPlatformSupported"/>
|
||||
/// <seealso href="https://www.glfw.org/docs/latest/intro_guide.html#platform">Runtime platform
|
||||
/// selection</seealso>
|
||||
public static GlfwPlatform GetPlatform() => (GlfwPlatform)PInvoke.GetPlatform();
|
||||
|
||||
/// <summary>
|
||||
/// Returns whether the library includes support for the specified platform.
|
||||
/// </summary>
|
||||
/// <param name="platform">The platform to query.</param>
|
||||
/// <returns><c>true</c> if the platform is supported, <c>false</c> otherwise.</returns>
|
||||
/// <remarks>
|
||||
/// The result depends on which backends were enabled when the GLFW native library was compiled. May be called
|
||||
/// before <see cref="Init"/>.
|
||||
/// </remarks>
|
||||
/// <possibleErrors>
|
||||
/// <see cref="GlfwErrorCode.InvalidEnum"/>
|
||||
/// </possibleErrors>
|
||||
/// <threadSafety>
|
||||
/// This function may be called from any thread.
|
||||
/// </threadSafety>
|
||||
/// <seealso cref="GetPlatform"/>
|
||||
/// <seealso href="https://www.glfw.org/docs/latest/intro_guide.html#platform">Runtime platform
|
||||
/// selection</seealso>
|
||||
public static bool IsPlatformSupported(GlfwPlatform platform) =>
|
||||
PInvoke.PlatformSupported((int)platform) == GLFW_TRUE;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue