• <tfoot id='fofhu'></tfoot>

      <small id='fofhu'></small><noframes id='fofhu'>

        <i id='fofhu'><tr id='fofhu'><dt id='fofhu'><q id='fofhu'><span id='fofhu'><b id='fofhu'><form id='fofhu'><ins id='fofhu'></ins><ul id='fofhu'></ul><sub id='fofhu'></sub></form><legend id='fofhu'></legend><bdo id='fofhu'><pre id='fofhu'><center id='fofhu'></center></pre></bdo></b><th id='fofhu'></th></span></q></dt></tr></i><div id='fofhu'><tfoot id='fofhu'></tfoot><dl id='fofhu'><fieldset id='fofhu'></fieldset></dl></div>
      1. <legend id='fofhu'><style id='fofhu'><dir id='fofhu'><q id='fofhu'></q></dir></style></legend>

        • <bdo id='fofhu'></bdo><ul id='fofhu'></ul>

        如何使 libGDX 桌面应用程序可调整大小?

        时间:2023-05-20

        <legend id='nqgHd'><style id='nqgHd'><dir id='nqgHd'><q id='nqgHd'></q></dir></style></legend>
      2. <tfoot id='nqgHd'></tfoot>
          <bdo id='nqgHd'></bdo><ul id='nqgHd'></ul>
            • <i id='nqgHd'><tr id='nqgHd'><dt id='nqgHd'><q id='nqgHd'><span id='nqgHd'><b id='nqgHd'><form id='nqgHd'><ins id='nqgHd'></ins><ul id='nqgHd'></ul><sub id='nqgHd'></sub></form><legend id='nqgHd'></legend><bdo id='nqgHd'><pre id='nqgHd'><center id='nqgHd'></center></pre></bdo></b><th id='nqgHd'></th></span></q></dt></tr></i><div id='nqgHd'><tfoot id='nqgHd'></tfoot><dl id='nqgHd'><fieldset id='nqgHd'></fieldset></dl></div>

                <small id='nqgHd'></small><noframes id='nqgHd'>

                  <tbody id='nqgHd'></tbody>

                  本文介绍了如何使 libGDX 桌面应用程序可调整大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  libGDX 应用程序必须实现 .resize(int width, int height) 方法,所以我认为调整 libGDX 应用程序的大小并不是什么大问题,但我发现无法制作实际的应用程序 JFrame 或任何可拖动的东西使用 JFrame.setResizable(true).这对 libGDX 来说是不可能的吗?

                  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 actual application JFrame or whatever that is draggable as with JFrame.setResizable(true). Is that simply not possible with libGDX ?

                  推荐答案

                  如果你的桌面应用使用 gdx-backend-lwjgl,那么你可以使用:

                  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);
                  

                  使用来自 SVN 中继的最新源.

                  Use newest source from SVN trunk.

                  这篇关于如何使 libGDX 桌面应用程序可调整大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:MouseJointDef libgdx - 像愤怒的小鸟一样画一条轨迹线 下一篇:从 libgdx 中的集合中检测触摸对象(移动)的最佳方

                  相关文章

                  最新文章

                  <tfoot id='hVDHF'></tfoot>
                  1. <small id='hVDHF'></small><noframes id='hVDHF'>

                        <bdo id='hVDHF'></bdo><ul id='hVDHF'></ul>
                    1. <i id='hVDHF'><tr id='hVDHF'><dt id='hVDHF'><q id='hVDHF'><span id='hVDHF'><b id='hVDHF'><form id='hVDHF'><ins id='hVDHF'></ins><ul id='hVDHF'></ul><sub id='hVDHF'></sub></form><legend id='hVDHF'></legend><bdo id='hVDHF'><pre id='hVDHF'><center id='hVDHF'></center></pre></bdo></b><th id='hVDHF'></th></span></q></dt></tr></i><div id='hVDHF'><tfoot id='hVDHF'></tfoot><dl id='hVDHF'><fieldset id='hVDHF'></fieldset></dl></div>
                      <legend id='hVDHF'><style id='hVDHF'><dir id='hVDHF'><q id='hVDHF'></q></dir></style></legend>