本文整理了Java中com.jme3.app.Application.setSettings()
方法的一些代码示例,展示了Application.setSettings()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.setSettings()
方法的具体详情如下:
包路径:com.jme3.app.Application
类名称:Application
方法名:setSettings
[英]Set the display settings to define the display created.
Examples of display parameters include display pixel width and height, color bit depth, z-buffer bits, anti-aliasing samples, and update frequency. If this method is called while the application is already running, then #restart() must be called to apply the settings to the display.
[中]设置显示设置以定义创建的显示。
显示参数的示例包括显示像素宽度和高度、颜色位深度、z缓冲位、抗锯齿采样和更新频率。如果在应用程序已经运行时调用此方法,则必须调用#restart()以将设置应用于显示。
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
settings.setSwapBuffers(true);
settings.setVSync(true); // allow vsync on this display
stateManager.getApplication().setSettings(settings);
logger.config("Updated underlying application settings.");
stateManager.getApplication().setSettings(settings);
logger.config("Updated underlying application settings.");
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-desktop
app.setSettings(settings);
app.createCanvas();
内容来源于网络,如有侵权,请联系作者删除!