How do I make a libGDX Desktop application resizable?

前端 未结 1 479
萌比男神i
萌比男神i 2021-01-14 12:58

libGDX Applications must implement the .resize(int width, int height) method, so I figured that resizing a libGDX app is not a big deal, but I found no way to make the actua

相关标签:
1条回答
  • 2021-01-14 14:00

    If you use gdx-backend-lwjgl for you desktop app, then you can use:

    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.resizable = true;
    new LwjglApplication(new YourGame(), config);
    

    Use newest source from SVN trunk.

    0 讨论(0)
提交回复
热议问题