Top Description Inners Constructors Methods
org.lwjgl.glfw

public Class GLFWNativeGLX

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

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
GLFWNativeGLX.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 GLXContext of the specified window, or NULL if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

glfwGetGLXContext
(long
a GLFW window
window
)

Returns the GLXContext of the specified window.

public static long

Returns:

the GLXFBConfig that was chosen to create the specified window, or NULL if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

glfwGetGLXFBConfig
(long
a GLFW window
window
)

Returns the GLXFBConfig that was chosen to create the specified window.

public static long

Returns:

the GLXWindow of the specified window, or None if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

glfwGetGLXWindow
(long
a GLFW window
window
)

Returns the GLXWindow 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

GLFWNativeGLXback to summary
protected GLFWNativeGLX()

Method Detail

glfwGetGLXContextback to summary
public static long glfwGetGLXContext(long window)

Returns the GLXContext of the specified window.

This function may be called from any thread. Access is not synchronized.

Parameters
window:long

a GLFW window

Returns:long

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

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

Annotations
@NativeType:GLXContext
Since
version 3.0
glfwGetGLXFBConfigback to summary
public static long glfwGetGLXFBConfig(long window)

Returns the GLXFBConfig that was chosen to create the specified window.

This function may be called from any thread. Access is not synchronized.

Parameters
window:long

a GLFW window

Returns:long

the GLXFBConfig that was chosen to create the specified window, or NULL if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

Annotations
@NativeType:GLXWindow
Since
version 3.4
glfwGetGLXWindowback to summary
public static long glfwGetGLXWindow(long window)

Returns the GLXWindow of the specified window.

This function may be called from any thread. Access is not synchronized.

Parameters
window:long

a GLFW window

Returns:long

the GLXWindow of the specified window, or None if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

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

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

Example usage: GLFWNativeGLX.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 GLFWNativeGLX.Functions

extends Object
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
public static final long
GetGLXContext

Function address.

public static final long
GetGLXFBConfig

Function address.

public static final long
GetGLXWindow

Function address.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GetGLXContextback to summary
public static final long GetGLXContext

Function address.

GetGLXFBConfigback to summary
public static final long GetGLXFBConfig

Function address.

GetGLXWindowback to summary
public static final long GetGLXWindow

Function address.

Constructor Detail

Functionsback to summary
private Functions()