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.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | |
| private static boolean | |
| private static boolean |
| EventLoop | back to summary |
|---|---|
| private EventLoop() | |
| check | back to summary |
|---|---|
| pack-priv static void check() | |
| isJavaStartedOnFirstThread | back to summary |
|---|---|
| private static boolean isJavaStartedOnFirstThread() | |
| isMainThread | back to summary |
|---|---|
| private static boolean isMainThread() | |