Implemented ANGLE on mac machines

This commit is contained in:
2026-03-31 14:44:03 -03:00
parent 9c1461bccb
commit 44acbe0e32
3 changed files with 12 additions and 4 deletions

View File

@@ -32,8 +32,10 @@ public class App extends Game {
camera.position.set((float) SCREEN_WIDTH /2, (float) SCREEN_HEIGHT /2, 0);
camera.update();
// Draw sprites/menu/logos/4.png
assets.loadGameAssets();
//assets.loadMenuAssets();
assets.loadMenuAssets();
assets.finishLoading();
System.out.println("Assets Loaded");
this.setScreen(new GameScene(this));

View File

@@ -35,8 +35,9 @@ dependencies {
if(enableGraalNative == 'true') {
implementation "io.github.berstanio:gdx-svmhelper-backend-lwjgl3:$graalHelperVersion"
}
}
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-lwjgl3-angle:$gdxVersion"
}
def os = System.properties['os.name'].toLowerCase(Locale.ROOT)

View File

@@ -41,7 +41,12 @@ public class Lwjgl3Launcher {
//// You can choose to add the following line and the mentioned dependency if you want; they
//// are not intended for games that use GL30 (which is compatibility with OpenGL ES 3.0).
//// Know that it might not work well in some cases.
// configuration.setOpenGLEmulation(Lwjgl3ApplicationConfiguration.GLEmulation.ANGLE_GLES20, 0, 0);
String os = System.getProperty("os.name").toLowerCase();
if (os.contains("mac")) {
configuration.setOpenGLEmulation(
Lwjgl3ApplicationConfiguration.GLEmulation.ANGLE_GLES20, 0, 0
);
}
return configuration;
}