Search in sources :

Example 1 with AppSettings

use of com.jme3.system.AppSettings in project jmonkeyengine by jMonkeyEngine.

the class TestMultiPostWater method main.

public static void main(String[] args) {
    TestMultiPostWater app = new TestMultiPostWater();
    AppSettings s = new AppSettings(true);
    s.setRenderer(AppSettings.LWJGL_OPENGL2);
    s.setAudioRenderer(AppSettings.LWJGL_OPENAL);
    //       
    //        s.setRenderer("JOGL");
    //        s.setAudioRenderer("JOAL");
    app.setSettings(s);
    app.start();
}
Also used : AppSettings(com.jme3.system.AppSettings)

Example 2 with AppSettings

use of com.jme3.system.AppSettings in project jmonkeyengine by jMonkeyEngine.

the class JmeIosSystem method newContext.

@Override
public JmeContext newContext(AppSettings settings, JmeContext.Type contextType) {
    initialize(settings);
    JmeContext ctx = null;
    if (settings.getRenderer() == null || settings.getRenderer().equals("NULL") || contextType == JmeContext.Type.Headless) {
        ctx = new NullContext();
        ctx.setSettings(settings);
    } else {
        ctx = new IGLESContext();
        ctx.setSettings(settings);
    }
    return ctx;
}
Also used : NullContext(com.jme3.system.NullContext) JmeContext(com.jme3.system.JmeContext)

Example 3 with AppSettings

use of com.jme3.system.AppSettings in project jmonkeyengine by jMonkeyEngine.

the class JmeIosSystem method newAudioRenderer.

@Override
public AudioRenderer newAudioRenderer(AppSettings settings) {
    ALC alc = new IosALC();
    AL al = new IosAL();
    //EFX efx = new IosEFX();
    return new ALAudioRenderer(al, alc, null);
}
Also used : IosAL(com.jme3.audio.ios.IosAL) ALC(com.jme3.audio.openal.ALC) IosALC(com.jme3.audio.ios.IosALC) IosALC(com.jme3.audio.ios.IosALC) AL(com.jme3.audio.openal.AL) IosAL(com.jme3.audio.ios.IosAL) ALAudioRenderer(com.jme3.audio.openal.ALAudioRenderer)

Example 4 with AppSettings

use of com.jme3.system.AppSettings in project jmonkeyengine by jMonkeyEngine.

the class TestInstanceNode method main.

public static void main(String[] args) {
    TestInstanceNode app = new TestInstanceNode();
    AppSettings settings = new AppSettings(true);
    settings.setVSync(false);
    app.setSettings(settings);
    app.start();
}
Also used : AppSettings(com.jme3.system.AppSettings)

Example 5 with AppSettings

use of com.jme3.system.AppSettings in project jmonkeyengine by jMonkeyEngine.

the class TestAppStates method start.

@Override
public void start(JmeContext.Type contextType) {
    AppSettings settings = new AppSettings(true);
    settings.setResolution(1024, 768);
    setSettings(settings);
    super.start(contextType);
}
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