use of com.jme3.system.AppSettings in project jmonkeyengine by jMonkeyEngine.
the class TestResizableApp method main.
public static void main(String[] args) {
TestResizableApp app = new TestResizableApp();
AppSettings settings = new AppSettings(true);
settings.setResizable(true);
app.setSettings(settings);
app.setShowSettings(false);
app.start();
}
use of com.jme3.system.AppSettings in project jmonkeyengine by jMonkeyEngine.
the class TestJoystick method main.
public static void main(String[] args) {
TestJoystick app = new TestJoystick();
AppSettings settings = new AppSettings(true);
settings.setUseJoysticks(true);
app.setSettings(settings);
app.start();
}
use of com.jme3.system.AppSettings in project jmonkeyengine by jMonkeyEngine.
the class HelloOpenCL method main.
public static void main(String[] args) {
HelloOpenCL app = new HelloOpenCL();
AppSettings settings = new AppSettings(true);
settings.setOpenCLSupport(true);
settings.setVSync(true);
// settings.setRenderer(AppSettings.JOGL_OPENGL_FORWARD_COMPATIBLE);
app.setSettings(settings);
// start the game
app.start();
}
use of com.jme3.system.AppSettings in project jmonkeyengine by jMonkeyEngine.
the class TestMultipleApplications method main.
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
final AppSettings settings = new AppSettings(true);
settings.setOpenCLSupport(true);
settings.setVSync(true);
settings.setOpenCLPlatformChooser(CustomPlatformChooser.class);
settings.setRenderer(AppSettings.JOGL_OPENGL_FORWARD_COMPATIBLE);
for (int i = 0; i < 2; ++i) {
new Thread() {
public void run() {
if (currentDeviceIndex == -1) {
return;
}
TestMultipleApplications app = new TestMultipleApplications();
app.setSettings(settings);
app.setShowSettings(false);
app.start();
}
}.start();
}
}
use of com.jme3.system.AppSettings in project jmonkeyengine by jMonkeyEngine.
the class TestRenderToMemory method main.
public static void main(String[] args) {
TestRenderToMemory app = new TestRenderToMemory();
app.setPauseOnLostFocus(false);
AppSettings settings = new AppSettings(true);
settings.setResolution(1, 1);
app.setSettings(settings);
app.start(Type.OffscreenSurface);
}
Aggregations