Implemented ANGLE on mac machines
This commit is contained in:
@@ -32,8 +32,10 @@ public class App extends Game {
|
|||||||
camera.position.set((float) SCREEN_WIDTH /2, (float) SCREEN_HEIGHT /2, 0);
|
camera.position.set((float) SCREEN_WIDTH /2, (float) SCREEN_HEIGHT /2, 0);
|
||||||
camera.update();
|
camera.update();
|
||||||
|
|
||||||
|
// Draw sprites/menu/logos/4.png
|
||||||
|
|
||||||
assets.loadGameAssets();
|
assets.loadGameAssets();
|
||||||
//assets.loadMenuAssets();
|
assets.loadMenuAssets();
|
||||||
assets.finishLoading();
|
assets.finishLoading();
|
||||||
System.out.println("Assets Loaded");
|
System.out.println("Assets Loaded");
|
||||||
this.setScreen(new GameScene(this));
|
this.setScreen(new GameScene(this));
|
||||||
|
|||||||
@@ -35,8 +35,9 @@ dependencies {
|
|||||||
|
|
||||||
if(enableGraalNative == 'true') {
|
if(enableGraalNative == 'true') {
|
||||||
implementation "io.github.berstanio:gdx-svmhelper-backend-lwjgl3:$graalHelperVersion"
|
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)
|
def os = System.properties['os.name'].toLowerCase(Locale.ROOT)
|
||||||
|
|||||||
@@ -41,7 +41,12 @@ public class Lwjgl3Launcher {
|
|||||||
//// You can choose to add the following line and the mentioned dependency if you want; they
|
//// 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).
|
//// 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.
|
//// 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;
|
return configuration;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user