chore: switched to lwjgl3

This commit is contained in:
Laureηt 2021-04-05 17:30:23 +02:00
parent f221aa639d
commit eec9ee040e
3 changed files with 19 additions and 9 deletions

3
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}

View file

@ -43,7 +43,7 @@ project(":desktop") {
dependencies {
implementation project(":core")
api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
}

View file

@ -1,12 +1,19 @@
package bzh.fainsin.sagittarius.desktop;
package bzsh.fainsin.sagittarius.desktop;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import bzh.fainsin.sagittarius.SagittariusGame;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
import bzsh.fainsin.sagittarius.SagittariusGame;
public class DesktopLauncher {
public static void main (String[] arg) {
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
new LwjglApplication(new SagittariusGame(), config);
public static void main(String[] arg) {
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
config.useVsync(true);
config.setForegroundFPS(120);
config.setWindowedMode(1600, 900);
config.setDecorated(false);
new Lwjgl3Application(new SagittariusGame(), config);
}
}
}