Top Description Constructors Methods
org.lwjgl.glfw

pack-priv final Class EventLoop

extends Object
Class Inheritance
Imports
org.lwjgl.system.*, org.lwjgl.system.macosx.*

Contains checks for the event loop issues on OS X.

GLFW can only be used on the main thread and only if that thread is the first thread in the process. This requires running the JVM with -XstartOnFirstThread, which means that other window toolkits (AWT/Swing, JavaFX, etc.) cannot be used at the same time.

Another window toolkit can be used if GLFW windows are never shown (created with GLFW_VISIBLE equal to GLFW_FALSE) and only used as contexts for offscreen rendering. This is possible if the window toolkit has initialized and created the shared application (NSApp) before GLFW is initialized.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
private static boolean
private static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EventLoopback to summary
private EventLoop()

Method Detail

checkback to summary
pack-priv static void check()
isJavaStartedOnFirstThreadback to summary
private static boolean isJavaStartedOnFirstThread()
isMainThreadback to summary
private static boolean isMainThread()