From 471b838b737664aaafa4a572850b133d11cacf28 Mon Sep 17 00:00:00 2001 From: Vera-Firefly <87926662+Vera-Firefly@users.noreply.github.com> Date: Fri, 4 Aug 2023 13:30:40 +0800 Subject: [PATCH] Fix[glfw]: add missing function for 23w31a --- .../src/main/java/org/lwjgl/glfw/GLFW.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java b/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java index ac89bf795..2b101ede9 100644 --- a/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java +++ b/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java @@ -371,6 +371,15 @@ public class GLFW GLFW_COCOA_CHDIR_RESOURCES = 0x51001, GLFW_COCOA_MENUBAR = 0x51002; + /** Hint value for {@link #GLFW_PLATFORM PLATFORM} that enables automatic platform selection. */ + public static final int + GLFW_ANY_PLATFORM = 0x60000, + GLFW_PLATFORM_WIN32 = 0x60001, + GLFW_PLATFORM_COCOA = 0x60002, + GLFW_PLATFORM_WAYLAND = 0x60003, + GLFW_PLATFORM_X11 = 0x60004, + GLFW_PLATFORM_NULL = 0x60005; + /** Don't care value. */ public static final int GLFW_DONT_CARE = -1; @@ -822,6 +831,10 @@ public static void glfwTerminate() { public static void glfwInitHint(int hint, int value) { } + public static int glfwGetPlatform() { + return GLFW_PLATFORM_X11; + } + @NativeType("GLFWwindow *") public static long glfwGetCurrentContext() { long __functionAddress = Functions.GetCurrentContext;