Search in sources :

Example 1 with NullContext

use of com.jme3.system.NullContext 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)

Aggregations

JmeContext (com.jme3.system.JmeContext)1 NullContext (com.jme3.system.NullContext)1