org.lwjgl.glfw.GLFWNativeWGL 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
A 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.*;
/** Native bindings to the GLFW library's WGL native access functions. */
public class GLFWNativeWGL {
protected GLFWNativeWGL() {
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
GetWGLContext = apiGetFunctionAddress(GLFW.getLibrary(), "glfwGetWGLContext");
}
// --- [ glfwGetWGLContext ] ---
/**
* Returns the HGLRC
of the specified window.
*
* Note: This function may be called from any thread. Access is not synchronized.
*
* @param window the GLFW window
*
* @return The HGLRC
of the specified window, or {@code NULL} if an error occurred.
*
* @since version 3.0
*/
public static long glfwGetWGLContext(long window) {
long __functionAddress = Functions.GetWGLContext;
if ( CHECKS )
check(window);
return invokePP(__functionAddress, window);
}
}