forked from libgdx/libgdx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gdx-lwjgl3-glfw-awt-macos extensions to add support for mixing GLFW a…
…nd AWT on macOS (libgdx#6772) * Apply formatter * Add support for LWJGL3 + AWT on macOS GLFW and AWT both compete for the AppKit run loop. LWJGL3 apps on macOS thus need to specify the -XstartOnFirstThread JVM option. This prevents AWT (and by proxy Swing, ImageIO, etc.) from working together with LWJGL3 on macOS. This commit injects a modified libglfw.dylib (see https://github.com/badlogic/glfw). The GLFW fork is modified such that all calls into AppKit APIs are expected to be performed on a thread != main thread. This way, AWT can take over the run loop, while GLFW (and libGDX LWJGL3) apps can live on a separate thread. To use this, add `gdx-lwjgl3-glfw-awt-macos` as a dependency to your libGDX desktop project. You can now use both libGDX and AWT/Swing/ImageIO on macOS. Note: this extensions does NOT allow rendering your libGDX content to an AWT/Swing window. * Apply formatter * Only initialize AWT if not on EDT - Update Wav and Ogg classes in LWJGL3 backend with latest changes from LWJGL2 backend. - Fix mip map generation when using ANGLE * Resize callback must be called on rendering thread on macOS * Added Lwjgl3Window.flash() * Expose window state * Add awt extension to LWJGL3 tests. * Update libglfw with latest from https://github.com/badlogic/glfw * Pull libglfw.dylib from https://github.com/badlogic/glfw * Fix for libgdx#6770, don't apply uberJar task to Android tests. * Updated CHANGES * Removed pom.xml from and fixed Gradle dependency definition in gdx-lwjgl3-glfw-awt-macos, updated CHANGES. * Fixed incorrect PR URL in CHANGES. * Check if shape is not null (libgdx#6765) * Add explicit permissions for fix-formatting.yml (libgdx#6767) * Add explicit permissions for fix-formatting.yml * Add explicit permissions to build-pullrequest.yml * Add missing method to emulated timer class (libgdx#6762) The isEmpty method from the core Timer class was missing in the emulated Timer for the GWT backend. This caused the html build to fail if the isEmpty method was used. * Update Tooltip.java (libgdx#6758) * Update Tooltip.java Added option to let user set touch independency for tooltips, which prevents tooltip from showing when targetActor's hitbox is entered with screen already touched * Update Tooltip.java Formatting * Add NWSEResize, NESWResize, AllResize, and NotAllowed SystemCursors (libgdx#6756) * Create SystemCursorTest * Add NWSEResize, NESWResize, AllResize, and NotAllowed SystemCursors * Remove dead code in OpenALAudioDevice (libgdx#6753) * Add new Pixmap constructor for loading from a ByteBuffer (libgdx#6741) * Add new Pixmap constructor for loading from a ByteBuffer * Prevent SIGSEGV if called with a non-direct ByteBuffer. * Updated documentation for getDensity() to warn about potentially costly operation (libgdx#6698) Co-authored-by: Johannes Mario Ringheim <[email protected]> * Box2D Shape impl disposable (libgdx#6528) * Get js heap size on gwt (libgdx#6425) * Get js heap size on gwt * Use casting for converting to long * Format * Add missing CHANGES entries [ci skip] Add changelog entries for the notable changes in libgdx#6425, libgdx#6528, libgdx#6758, libgdx#6762. * Test for unique name jni issue on ios * Removed unused local. libgdx#6753 Co-authored-by: GitHub Action <[email protected]> Co-authored-by: Natan <[email protected]> Co-authored-by: intrigus <[email protected]> Co-authored-by: 6money <[email protected]> Co-authored-by: redy5 <[email protected]> Co-authored-by: Kyle McLean <[email protected]> Co-authored-by: Hangman <[email protected]> Co-authored-by: PokeMMO <[email protected]> Co-authored-by: funkyfourier <[email protected]> Co-authored-by: Johannes Mario Ringheim <[email protected]> Co-authored-by: Fabiitch <[email protected]> Co-authored-by: SimonIT <[email protected]> Co-authored-by: damios <[email protected]> Co-authored-by: Tom <[email protected]> Co-authored-by: Nathan Sweet <[email protected]>
- Loading branch information
1 parent
295c9fa
commit a0e584f
Showing
16 changed files
with
319 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/******************************************************************************* | ||
* Copyright 2011 See AUTHORS file. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
******************************************************************************/ | ||
|
||
dependencies { | ||
implementation project(":gdx") | ||
} | ||
|
||
sourceSets.main.java.srcDirs = ["src"] | ||
sourceSets.main.resources.srcDirs = ["res"] | ||
|
||
// Workaround needed for IDEA to have resources on classpath when running tests (like gdx-tests-lwjgl3) | ||
task copyIdeaResources(type: Copy) { | ||
from "${projectDir}/res" | ||
into "${buildDir}/classes/java/main/" | ||
} | ||
processResources.dependsOn copyIdeaResources |
Oops, something went wrong.