Skip to content

Commit

Permalink
Fix[glfw]: add missing function for 23w31a
Browse files Browse the repository at this point in the history
  • Loading branch information
Vera-Firefly authored Aug 4, 2023
1 parent 2a78d18 commit 471b838
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 471b838

Please sign in to comment.