mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,57 @@
|
|||
// <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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue