Search in sources :

Example 31 with AppSettings

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();
}
Also used : AppSettings(com.jme3.system.AppSettings)

Example 32 with AppSettings

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();
}
Also used : AppSettings(com.jme3.system.AppSettings)

Example 33 with AppSettings

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();
}
Also used : AppSettings(com.jme3.system.AppSettings)

Example 34 with AppSettings

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();
    }
}
Also used : AppSettings(com.jme3.system.AppSettings)

Example 35 with AppSettings

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);
}
Also used : AppSettings(com.jme3.system.AppSettings)

Aggregations

AppSettings (com.jme3.system.AppSettings)40 LegacyApplication (com.jme3.app.LegacyApplication)5 IOException (java.io.IOException)4 AL (com.jme3.audio.openal.AL)3 ALAudioRenderer (com.jme3.audio.openal.ALAudioRenderer)3 ALC (com.jme3.audio.openal.ALC)3 EFX (com.jme3.audio.openal.EFX)2 MouseInput (com.jme3.input.MouseInput)2 Vector2f (com.jme3.math.Vector2f)2 Mesh (com.jme3.scene.Mesh)2 JmeToJFXApplication (com.jme3x.jfx.injfx.JmeToJFXApplication)2 GraphicsDevice (java.awt.GraphicsDevice)2 BufferedReader (java.io.BufferedReader)2 File (java.io.File)2 InputStream (java.io.InputStream)2 TextView (android.widget.TextView)1 JmeUtil (com.cas.sim.tis.util.JmeUtil)1 SettingsDialog (com.jme3.app.SettingsDialog)1 SelectionListener (com.jme3.app.SettingsDialog.SelectionListener)1 AssetNotFoundException (com.jme3.asset.AssetNotFoundException)1