本文整理匯總了Java中com.jme3.system.AppSettings.setTitle方法的典型用法代碼示例。如果您正苦於以下問題:Java AppSettings.setTitle方法的具體用法?Java AppSettings.setTitle怎麽用?Java AppSettings.setTitle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.jme3.system.AppSettings
的用法示例。
在下文中一共展示了AppSettings.setTitle方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: Viewer
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public Viewer() throws Exception{
setShowSettings(false);
AppSettings settings=new AppSettings(true);
settings.setResizable(true);
settings.setFrameRate(15);
settings.setWidth(640);
settings.setHeight(480);
settings.setTitle("Image Viewer");
reloadImage(null);
int w=IMAGE.getImage().getWidth();
int h=IMAGE.getImage().getHeight();
GraphicsDevice gd=GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
if(w<gd.getDisplayMode().getWidth()/2&&h<gd.getDisplayMode().getHeight()){
settings.setWidth(w);
settings.setHeight(h);
}
setSettings(settings);
}
示例2: init
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public void init(SurveyPlayback sim) {
mSettings = new AppSettings(true);
mSettings.setTitle("HELIOS - The Heidelberg LiDAR Operations Simulator");
mSettings.setVSync(true);
mSettings.setResolution(1680, 1050);
mSettings.setResolution(1280, 1024);
mSettings.setResolution(1600, 1024);
// setting.setResolution(1024,768);
mSettings.setResolution(1024,768);
mSettings.setSamples(4);
setSettings(mSettings);
setShowSettings(false);
// ATTENTION: This is REQUIRED to prevent freezing of the whole computer if the program loses focus!
// setPauseOnLostFocus() must be "false" since currently, setting it to "true" won't stop the actual simulation anyway.
setPauseOnLostFocus(false);
this.sim = sim;
}
示例3: startSimulation
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public void startSimulation(boolean debugShapes) throws InterruptedException {
AppSettings simWindowSettings = new AppSettings(true);
simWindowSettings.setTitle("Simulation Environment for Autonomous Robots");
searSim.setSettings(simWindowSettings);
searSim.setShowSettings(false); //Prevents the Jmonkey dialog window from popping up. Must be set before app.start()
searSim.setPauseOnLostFocus(false); //keeps simulation going while window is not in focus or selected. Allows it to run in the background.
if (debugShapes) {
searSim.setDebugMode();
}
searSim.startSimulation(this.getName());
while (!searSim.initialized()) {
Thread.sleep(333); //wait 1/3 of a second and check
}
invoke("getHashMap");
}
示例4: start
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
@Override
public void start()
{
DisplayPrefsItem dprefs = new DisplayPrefsItem();
AppSettings settings = new AppSettings(true);
settings.setTitle("Multiplicity v3.0");
settings.setBitsPerPixel(dprefs.getBitsPerPixel());
settings.setWidth(dprefs.getWidth());
settings.setHeight(dprefs.getHeight());
settings.setFullscreen(dprefs.getFullScreen());
settings.setVSync(true);
settings.setSamples(dprefs.getMinimumAntiAliasSamples());
setSettings(settings);
super.start();
}
示例5: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
/**
* @param args
*/
public static void main(String[] args) {
JOryx oryx = new JOryx();
singleton = oryx;
AppSettings a = new AppSettings(true);
SettingsState ss = SettingsState.getSingleton();
ss.loadSettings();
a.setTitle("Realm of the Mad God");
a.setWidth(ss.width);
a.setHeight(ss.height);
a.setFullscreen(ss.fullscreen);
a.setRenderer(AppSettings.LWJGL_OPENGL1);
oryx.setSettings(a);
oryx.setPauseOnLostFocus(false);
oryx.start();
}
示例6: appSettings
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
@Singleton
@Provides
public AppSettings appSettings(AppSettingsLoader appSettingsLoader, ResourceBundle resources) {
AppSettings settings = new AppSettings(true);
try {
settings = appSettingsLoader.loadInto(settings);
} catch (Exception e) {
e.printStackTrace();
}
settings.setTitle(resources.getString("title"));
settings.setUseJoysticks(true);
//settings.setGammaCorrection(true); //TODO jme 3.1.0
//settings.setResolution(640,480);
// settings.setRenderer("JOGL");
// settings.setRenderer(AppSettings.LWJGL_OPENGL3);
return settings;
}
示例7: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
AppSettings settings = new AppSettings(false);
settings.setTitle("SkyHussars");
settings.setUseJoysticks(true);
/* TODO: make it moddable */
settings.setSettingsDialogImage("images/settings_image.jpg");
SkyHussars application = new SkyHussars();
application.setSettings(settings);
application.start();
}
示例8: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) throws BackingStoreException {
Locale.setDefault(Locale.ENGLISH);
MainApp app = new MainApp();
app.setPauseOnLostFocus(false);
app.setDisplayStatView(false);
app.setDisplayFps(false);
AppSettings settings = new AppSettings(false);
settings.load("SMILE");
settings.setTitle("SMILE");
settings.setSettingsDialogImage("Interface/line500px.png");
settings.setFrameRate(60);
settings.setSamples(2);
settings.putBoolean("DisableJoysticks", false);
settings.save("SMILE");
// settings.setVSync(true);
// settings.setResolution(800, 600);
// settings.setSamples(4);
// settings.setFullscreen(true);
// GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
// DisplayMode[] modes = device.getDisplayModes();
// for (int i = 0; i < modes.length; ++i) {
// System.err.println(modes[i].getWidth() + "x" + modes[i].getHeight() + " " + modes[i].getRefreshRate()
// + " " + modes[i].getBitDepth());
// }
//
// int i = 10; // note: there are usually several, let's pick the first
// settings.setResolution(modes[i].getWidth(), modes[i].getHeight());
// settings.setFrequency(modes[i].getRefreshRate());
// settings.setBitsPerPixel(modes[i].getBitDepth());
//// settings.setFullscreen(device.isFullScreenSupported());
app.setSettings(settings);
app.setShowSettings(true);
app.start(); // restart the context to apply changes
}
示例9: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
AppSettings settings=new AppSettings(true);
settings.setTitle("VHACD Test");
TestFunny app=new TestFunny();
app.setSettings(settings);
app.start();
}
示例10: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
AppSettings settings = new AppSettings(true);
settings.setResolution(640, 480);
settings.setSamples(4);
settings.setTitle("Projection");
settings.setFrameRate(40);
ProjectTest app = new ProjectTest();
app.setSettings(settings);
app.setShowSettings(false);
app.setPauseOnLostFocus(false);
app.start();
}
示例11: TestPhysics
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public TestPhysics(){
settings = new AppSettings(true);
settings.setWidth(1280);
settings.setHeight(720);
settings.setTitle("Cubes Demo - Physics");
settings.setFrameRate(60);
}
示例12: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
AppSettings settings = new AppSettings(true);
settings.setTitle("Circle");
settings.setResolution(800, 600);
Circle2dTest app = new Circle2dTest();
app.setSettings(settings);
app.setPauseOnLostFocus(false);
app.setShowSettings(false);
app.start();
}
示例13: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
Main app = new Main();
AppSettings settings = new AppSettings(true);
settings.setTitle("Magicallyous");
//settings.setSettingsDialogImage("Interface/splashscreen.png");
settings.setResolution(1280, 800);
app.setSettings(settings);
app.start(JmeContext.Type.Display);
}
示例14: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
MinionVsAlienProject app = new MinionVsAlienProject();
// Set some custom settings
AppSettings settings = new AppSettings(true);
settings.setTitle("Minions Vs Aliens");
app.setSettings(settings);
// Start the app
app.start();
}
示例15: main
import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
Main app = new Main();
AppSettings settings = new AppSettings(true);
settings.setTitle("Jogo Básico");
settings.setSettingsDialogImage("Interface/splashscreen.png");
settings.setResolution(1280, 800);
app.setSettings(settings);
app.start();
}