Class GLFWNativeWin32


  • public class GLFWNativeWin32
    extends java.lang.Object
    Native bindings to the GLFW library's Win32 native access functions.
    • Method Detail

      • nglfwGetWin32Adapter

        public static long nglfwGetWin32Adapter​(long monitor)
        Unsafe version of: GetWin32Adapter
      • glfwGetWin32Adapter

        @Nullable
        public static java.lang.String glfwGetWin32Adapter​(long monitor)
        Returns the adapter device name of the specified monitor.

        Note: This function may be called from any thread. Access is not synchronized.

        Parameters:
        monitor - the GLFW monitor
        Returns:
        The UTF-8 encoded adapter device name (for example `\\.\DISPLAY1`) of the specified monitor, or NULL if an error occurred.
        Since:
        version 3.1
      • nglfwGetWin32Monitor

        public static long nglfwGetWin32Monitor​(long monitor)
        Unsafe version of: GetWin32Monitor
      • glfwGetWin32Monitor

        @Nullable
        public static java.lang.String glfwGetWin32Monitor​(long monitor)
        Returns the display device name of the specified monitor.

        Note: This function may be called from any thread. Access is not synchronized.

        Parameters:
        monitor - the GLFW monitor
        Returns:
        The UTF-8 encoded display device name (for example `\\.\DISPLAY1\Monitor0`) of the specified monitor, or NULL if an error occurred.
        Since:
        version 3.1
      • glfwGetWin32Window

        public static long glfwGetWin32Window​(long window)
        Returns the HWND of the specified window.

        Note: This function may be called from any thread. Access is not synchronized.

        Parameters:
        window - the GLFW window
        Returns:
        The HWND of the specified window, or NULL if an error occurred.
        Since:
        version 3.0