本文整理了Java中com.jme3.system.AppSettings.setFullscreen()
方法的一些代码示例,展示了AppSettings.setFullscreen()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AppSettings.setFullscreen()
方法的具体详情如下:
包路径:com.jme3.system.AppSettings
类名称:AppSettings
方法名:setFullscreen
暂无
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
public static void main(String[] args) throws InterruptedException{
System.out.println("Creating application..");
LegacyApplication app = new LegacyApplication();
System.out.println("Starting application in LWJGL mode..");
app.start();
System.out.println("Waiting 5 seconds");
Thread.sleep(5000);
System.out.println("Closing application..");
app.stop();
Thread.sleep(2000);
System.out.println("Starting in fullscreen mode");
app = new LegacyApplication();
AppSettings settings = new AppSettings(true);
settings.setFullscreen(true);
settings.setResolution(-1,-1); // current width/height
app.setSettings(settings);
app.start();
Thread.sleep(5000);
app.stop();
Thread.sleep(2000);
System.out.println("Creating offscreen buffer application");
app = new LegacyApplication();
app.start(Type.OffscreenSurface);
Thread.sleep(3000);
System.out.println("Destroying offscreen buffer");
app.stop();
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
source.setBitsPerPixel(depth);
source.setFrequency(freq);
source.setFullscreen(fullscreen);
source.setVSync(vsync);
source.setGammaCorrection(gamma);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
public static void main(String[] args) throws InterruptedException{
AppSettings settings = new AppSettings(true);
final LegacyApplication app = new LegacyApplication();
app.setSettings(settings);
app.start();
Thread.sleep(3000);
settings.setFullscreen(true);
settings.setResolution(-1, -1);
app.setSettings(settings);
app.restart();
Thread.sleep(3000);
app.stop();
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
public static void main(String[] args) {
TestBatchNodeCluster app = new TestBatchNodeCluster();
settingst = new AppSettings(true);
//settingst.setFrameRate(75);
settingst.setResolution(640, 480);
settingst.setVSync(false);
settingst.setFullscreen(false);
app.setSettings(settingst);
app.setShowSettings(false);
app.start();
}
private ActionListener al = new ActionListener() {
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
settings.setHeight(Integer.parseInt(br.readLine()));
try {
settings.setFullscreen(br.readLine().toLowerCase(Locale.ENGLISH).contains("full"));
} catch(Exception e) {
settings.setFullscreen(false);
settings.setWidth(1280);
settings.setHeight(720);
settings.setFullscreen(false);
settings.setFrameRate(0); // never sleep in main loop
settings.setFrequency(VRhardware.getDisplayFrequency());
settings.setFullscreen(false);
settings.setVSync(false); // stop vsyncing on primary monitor!
settings.setSwapBuffers(!disableSwapBuffers || VRhardware instanceof OSVR);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
settings.setHeight(Integer.parseInt(br.readLine()));
try {
settings.setFullscreen(br.readLine().toLowerCase(Locale.ENGLISH).contains("full"));
} catch(Exception e) {
settings.setFullscreen(false);
settings.setWidth(1280);
settings.setHeight(720);
settings.setFullscreen(false);
settings.setFrameRate(0);
settings.setFrequency(environment.getVRHardware().getDisplayFrequency());
settings.setFullscreen(false);
settings.setVSync(false); // stop vsyncing on primary monitor!
settings.setSwapBuffers(environment.isSwapBuffers());
代码示例来源:origin: info.projectkyoto/mms-engine
source.setBitsPerPixel(depth);
source.setFrequency(freq);
source.setFullscreen(fullscreen);
source.setVSync(vsync);
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-desktop
source.setBitsPerPixel(depth);
source.setFrequency(freq);
source.setFullscreen(fullscreen);
source.setVSync(vsync);
source.setGammaCorrection(gamma);
代码示例来源:origin: tonihele/OpenKeeper
settings.getAppSettings().setBitsPerPixel(mdm.bitDepth);
settings.getAppSettings().setFrequency((Integer) refresh.getSelection());
settings.getAppSettings().setFullscreen(fullscreen.isChecked());
settings.getAppSettings().setVSync(vsync.isChecked());
settings.getAppSettings().setRenderer((String) ogl.getSelection());
内容来源于网络,如有侵权,请联系作者删除!