use of com.jme3.system.AppSettings in project TeachingInSimulation by ScOrPiOzzy.
the class JmeApplication method getAppSetting.
public AppSettings getAppSetting() {
Preferences prefs = Preferences.userRoot().node(SettingConsts.REG_APP_PATH);
AppSettings settings = new AppSettings(true);
// 分辨率
int width = prefs.getInt(SettingConsts.RESOLUTION_WIDTH, 1366);
int height = prefs.getInt(SettingConsts.RESOLUTION_HEIGHT, 768);
settings.setResolution(width, height);
settings.setFullscreen(prefs.getBoolean(SettingConsts.SCREEN_MODE, false));
return settings;
}
Aggregations