![JAR search and dependency download from the Maven repository](/logo.png)
org.lwjgl.glfw.GLFWNativeWin32 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-glfw Show documentation
Show all versions of lwjgl-glfw Show documentation
An multi-platform library for OpenGL, OpenGL ES and Vulkan development on the desktop. It provides a simple API for creating windows, contexts and surfaces, receiving input and events.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.glfw;
import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryUtil.*;
/** Native bindings to the GLFW library's Win32 native access functions. */
public class GLFWNativeWin32 {
protected GLFWNativeWin32() {
throw new UnsupportedOperationException();
}
/** Contains the function pointers loaded from {@code GLFW.getLibrary()}. */
public static final class Functions {
private Functions() {}
/** Function address. */
public static final long
GetWin32Adapter = apiGetFunctionAddress(GLFW.getLibrary(), "glfwGetWin32Adapter"),
GetWin32Monitor = apiGetFunctionAddress(GLFW.getLibrary(), "glfwGetWin32Monitor"),
GetWin32Window = apiGetFunctionAddress(GLFW.getLibrary(), "glfwGetWin32Window");
}
// --- [ glfwGetWin32Adapter ] ---
/** Unsafe version of: {@link #glfwGetWin32Adapter GetWin32Adapter} */
public static long nglfwGetWin32Adapter(long monitor) {
long __functionAddress = Functions.GetWin32Adapter;
if ( CHECKS )
check(monitor);
return invokePP(__functionAddress, monitor);
}
/**
* Returns the adapter device name of the specified monitor.
*
* Note: This function may be called from any thread. Access is not synchronized.
*
* @param monitor the GLFW monitor
*
* @return The UTF-8 encoded adapter device name (for example `\\.\DISPLAY1`) of the specified monitor, or {@code NULL} if an error occurred.
*
* @since version 3.1
*/
public static String glfwGetWin32Adapter(long monitor) {
long __result = nglfwGetWin32Adapter(monitor);
return memUTF8(__result);
}
// --- [ glfwGetWin32Monitor ] ---
/** Unsafe version of: {@link #glfwGetWin32Monitor GetWin32Monitor} */
public static long nglfwGetWin32Monitor(long monitor) {
long __functionAddress = Functions.GetWin32Monitor;
if ( CHECKS )
check(monitor);
return invokePP(__functionAddress, monitor);
}
/**
* Returns the display device name of the specified monitor.
*
* Note: This function may be called from any thread. Access is not synchronized.
*
* @param monitor the GLFW monitor
*
* @return The UTF-8 encoded display device name (for example `\\.\DISPLAY1\Monitor0`) of the specified monitor, or {@code NULL} if an error occurred.
*
* @since version 3.1
*/
public static String glfwGetWin32Monitor(long monitor) {
long __result = nglfwGetWin32Monitor(monitor);
return memUTF8(__result);
}
// --- [ glfwGetWin32Window ] ---
/**
* Returns the HWND
of the specified window.
*
* Note: This function may be called from any thread. Access is not synchronized.
*
* @param window the GLFW window
*
* @return The HWND
of the specified window, or {@code NULL} if an error occurred.
*
* @since version 3.0
*/
public static long glfwGetWin32Window(long window) {
long __functionAddress = Functions.GetWin32Window;
if ( CHECKS )
check(window);
return invokePP(__functionAddress, window);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy