//
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public static unsafe partial class Glfw
{
///
/// Returns the platform GLFW was initialized for.
///
/// One of .
///
/// must succeed before this method is called. If GLFW has not been initialized the
/// returned value is undefined; check via
/// .
///
///
///
///
///
/// This function may be called from any thread.
///
///
/// Runtime platform
/// selection
public static GlfwPlatform GetPlatform() => (GlfwPlatform)PInvoke.GetPlatform();
///
/// Returns whether the library includes support for the specified platform.
///
/// The platform to query.
/// true if the platform is supported, false otherwise.
///
/// The result depends on which backends were enabled when the GLFW native library was compiled. May be called
/// before .
///
///
///
///
///
/// This function may be called from any thread.
///
///
/// Runtime platform
/// selection
public static bool IsPlatformSupported(GlfwPlatform platform) =>
PInvoke.PlatformSupported((int)platform) == GLFW_TRUE;
}
}