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;
}
Aggregations