brutal/Brutal.ImGui.Backends/PlatformBackends/GlfwBackend.GlfwInterop.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

18 lines
579 B
C#

using System.Runtime.InteropServices;
namespace Brutal.ImGuiApi.Backends;
public partial class GlfwBackend
{
private static partial class GlfwInterop
{
private const string MacOSLibraryName = "glfw";
private const string WindowsLibraryName = "glfw3";
[LibraryImport(MacOSLibraryName, EntryPoint = "glfwGetCocoaWindow")]
public static partial nint GetCocoaWindow(nint glfwWindow);
[LibraryImport(WindowsLibraryName, EntryPoint = "glfwGetWin32Window")]
public static partial nint GetWin32Window(nint glfwWindow);
}
}