mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
57 lines
2.7 KiB
C#
57 lines
2.7 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Glfw.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.GlfwApi
|
|
{
|
|
public static unsafe partial class Glfw
|
|
{
|
|
/// <summary>
|
|
/// Sets the specified initialization hint to the desired value.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This function sets hints for the next initialization of GLFW.
|
|
/// <para>
|
|
/// The values you set hints to are never reset by GLFW, but they only take effect during initialization.
|
|
/// Once GLFW has been initialized, any values you set will be ignored until the library is terminated and
|
|
/// initialized again.
|
|
/// </para>
|
|
/// <para>
|
|
/// Some hints are platform specific. These may be set on any platform but they will only affect their
|
|
/// specific platform. Other platforms will ignore them. Setting these hints requires no platform specific
|
|
/// headers or functions.
|
|
/// </para>
|
|
/// </remarks>
|
|
/// <warning>
|
|
/// The contexts of any remaining windows must not be current on any other thread when this function is
|
|
/// called.
|
|
/// </warning>
|
|
/// <possibleErrors>
|
|
/// <see cref="GlfwErrorCode.InvalidEnum"/>, <see cref="GlfwErrorCode.InvalidValue"/>
|
|
/// </possibleErrors>
|
|
/// <threadSafety>
|
|
/// This function must only be called from the main thread.
|
|
/// </threadSafety>
|
|
/// <seealso href="https://www.glfw.org/docs/latest/intro_guide.html#intro_init">Initialization and
|
|
/// termination</seealso>
|
|
public static void SetInitHint(GlfwInitHint hint, int value) => PInvoke.InitHint((int)hint, value);
|
|
|
|
/// <summary>
|
|
/// Returns and clears the <see cref="GlfwErrorCode"/> of the last error for the calling thread.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This function returns and clears the <see cref="GlfwErrorCode"/> of the last error that occurred on the
|
|
/// calling thread, and optionally a human-readable description of it. if no error has occurred since the last
|
|
/// call, it returns <see cref="GlfwErrorCode.NoError"/> (zero) and the description string will be empty.
|
|
/// <para>
|
|
/// This function may be called before <see cref="Init"/>.
|
|
/// </para>
|
|
/// </remarks>
|
|
/// <threadSafety>
|
|
/// This function may be called from any thread.
|
|
/// </threadSafety>
|
|
/// <seealso href="https://www.glfw.org/docs/latest/intro_guide.html#error_handling">Error handling</seealso>
|
|
public static GlfwErrorCode GetError(out string? description) =>
|
|
(GlfwErrorCode)PInvoke.GetError(out description);
|
|
}
|
|
}
|