Class GLFWNativeWin32
- java.lang.Object
-
- org.lwjgl.glfw.GLFWNativeWin32
-
public class GLFWNativeWin32 extends java.lang.ObjectNative bindings to the GLFW library's Win32 native access functions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGLFWNativeWin32.FunctionsContains the function pointers loaded fromGLFW.getLibrary().
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longglfwAttachWin32Window(long handle, long share)Wraps an existingHWNDin a new GLFW window object.static java.lang.StringglfwGetWin32Adapter(long monitor)Returns the adapter device name of the specified monitor.static java.lang.StringglfwGetWin32Monitor(long monitor)Returns the display device name of the specified monitor.static longglfwGetWin32Window(long window)Returns theHWNDof the specified window.static longnglfwGetWin32Adapter(long monitor)Unsafe version of:GetWin32Adapterstatic longnglfwGetWin32Monitor(long monitor)Unsafe version of:GetWin32Monitor
-
-
-
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
NULLif an error occurred.Possible errors include
NOT_INITIALIZED. - 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
NULLif an error occurred.Possible errors include
NOT_INITIALIZED. - Since:
- version 3.1
-
glfwGetWin32Window
public static long glfwGetWin32Window(long window)
Returns theHWNDof the specified window.The
HDCassociated with the window can be queried with the GetDC function.HDC dc = GetDC(glfwGetWin32Window(window));This DC is private and does not need to be released.Note: This function may be called from any thread. Access is not synchronized.
- Parameters:
window- the GLFW window- Returns:
- the
HWNDof the specified window, orNULLif an error occurred.Possible errors include
NOT_INITIALIZED. - Since:
- version 3.0
-
glfwAttachWin32Window
public static long glfwAttachWin32Window(long handle, long share)Wraps an existingHWNDin a new GLFW window object.This function creates a GLFW window object and its associated OpenGL or OpenGL ES context for an existing
HWND. TheHWNDis not destroyed by GLFW.This function may be called from any thread.
LWJGL: This functionality is experimental and not officially supported by GLFW yet.
- Parameters:
handle- theHWNDto attach to the window objectshare- the window whose context to share resources with, orNULLto not share resources- Returns:
- the handle of the created window, or
NULLif an error occurred - Since:
- version 3.3
-
-