//
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public static unsafe partial class Glfw
{
///
/// Sets the specified initialization hint to the desired value.
///
///
/// This function sets hints for the next initialization of GLFW.
///
/// 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.
///
///
/// 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.
///
///
///
/// The contexts of any remaining windows must not be current on any other thread when this function is
/// called.
///
///
/// ,
///
///
/// This function must only be called from the main thread.
///
/// Initialization and
/// termination
public static void SetInitHint(GlfwInitHint hint, int value) => PInvoke.InitHint((int)hint, value);
///
/// Returns and clears the of the last error for the calling thread.
///
///
/// This function returns and clears the 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 (zero) and the description string will be empty.
///
/// This function may be called before .
///
///
///
/// This function may be called from any thread.
///
/// Error handling
public static GlfwErrorCode GetError(out string? description) =>
(GlfwErrorCode)PInvoke.GetError(out description);
}
}