Top Description Inners Constructors Methods
org.lwjgl.glfw

public Class GLFWNativeWGL

extends Object
Class Inheritance
Imports
org.lwjgl.system.*, javax.annotation.*, org.lwjgl.opengl.GL

Native bindings to the GLFW library's WGL native access functions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
GLFWNativeWGL.Functions

Contains the function pointers loaded from GLFW.getLibrary().

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long

Returns:

the HGLRC of the specified window, or NULL if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

glfwGetWGLContext
(long
the GLFW window
window
)

Returns the HGLRC of the specified window.

public static void
setPath(FunctionProvider
a FunctionProvider instance that will be cast to SharedLibrary
sharedLibrary
)

Calls setPath(String) with the path of the specified SharedLibrary.

public static void
setPath(String
the OpenGL shared library path, or null to remove the override.
path
)

Overrides the OpenGL shared library that GLFW loads internally.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GLFWNativeWGLback to summary
protected GLFWNativeWGL()

Method Detail

glfwGetWGLContextback to summary
public static long glfwGetWGLContext(long window)

Returns the HGLRC of the specified window.

The HDC associated 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:long

the GLFW window

Returns:long

the HGLRC of the specified window, or NULL if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

Annotations
@NativeType:HGLRC
Since
version 3.0
setPathback to summary
public static void setPath(FunctionProvider sharedLibrary)

Calls setPath(String) with the path of the specified SharedLibrary.

Example usage: GLFWNativeWGL.setPath(GL.getFunctionProvider());

Parameters
sharedLibrary:FunctionProvider

a FunctionProvider instance that will be cast to SharedLibrary

setPathback to summary
public static void setPath(String path)

Overrides the OpenGL shared library that GLFW loads internally.

This is useful when there's a mismatch between the shared libraries loaded by LWJGL and GLFW.

This method must be called before GLFW initializes OpenGL. The override is available only in the default GLFW build bundled with LWJGL. Using the override with a custom GLFW build will produce a warning in DEBUG mode (but not an error).

Parameters
path:String

the OpenGL shared library path, or null to remove the override.

org.lwjgl.glfw back to summary

public final Class GLFWNativeWGL.Functions

extends Object
Class Inheritance

Contains the function pointers loaded from GLFW.getLibrary().

Field Summary

Modifier and TypeField and Description
public static final long
GetWGLContext

Function address.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GetWGLContextback to summary
public static final long GetWGLContext

Function address.

Constructor Detail

Functionsback to summary
private Functions()