public class GLFWNativeWin32
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GLFWNativeWin32.Functions
Contains the function pointers loaded from
GLFW.getLibrary(). |
| Modifier and Type | Method and Description |
|---|---|
static long |
glfwAttachWin32Window(long handle,
long share)
Wraps an existing
HWND in a new GLFW window object. |
static java.lang.String |
glfwGetWin32Adapter(long monitor)
Returns the adapter device name of the specified monitor.
|
static java.lang.String |
glfwGetWin32Monitor(long monitor)
Returns the display device name of the specified monitor.
|
static long |
glfwGetWin32Window(long window)
Returns the
HWND of the specified window. |
static long |
nglfwGetWin32Adapter(long monitor)
Unsafe version of:
GetWin32Adapter |
static long |
nglfwGetWin32Monitor(long monitor)
Unsafe version of:
GetWin32Monitor |
public static long nglfwGetWin32Adapter(long monitor)
GetWin32Adapter@Nullable public static java.lang.String glfwGetWin32Adapter(long monitor)
Note: This function may be called from any thread. Access is not synchronized.
monitor - the GLFW monitorNULL if an error occurredpublic static long nglfwGetWin32Monitor(long monitor)
GetWin32Monitor@Nullable public static java.lang.String glfwGetWin32Monitor(long monitor)
Note: This function may be called from any thread. Access is not synchronized.
monitor - the GLFW monitorNULL if an error occurredpublic static long glfwGetWin32Window(long window)
HWND of the specified window.
Note: This function may be called from any thread. Access is not synchronized.
window - the GLFW windowHWND of the specified window, or NULL if an error occurredpublic static long glfwAttachWin32Window(long handle,
long share)
HWND in a new GLFW window object.
This function creates a GLFW window object and its associated OpenGL or OpenGL ES context for an existing HWND. The HWND is not
destroyed by GLFW.
This function may be called from any thread.
LWJGL: This functionality is experimental and not officially supported by GLFW yet.
handle - the HWND to attach to the window objectshare - the window whose context to share resources with, or NULL to not share resourcesNULL if an error occurredCopyright LWJGL. All Rights Reserved. License terms.