Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,4 @@ protected LegacyApplication createApplication() throws Exception {
return (LegacyApplication) clazz.getDeclaredConstructor().newInstance();
}
Comment thread
riccardobl marked this conversation as resolved.
Outdated

@Override
protected void configureSettings(AppSettings settings) {
settings.setEmulateMouse(mouseEventsEnabled);
settings.setUseJoysticks(joystickEventsEnabled);
settings.setEmulateKeyboard(keyEventsEnabled);

settings.setBitsPerPixel(24);
settings.setAlphaBits(0);
settings.setGammaCorrection(true);
settings.setDepthBits(16);
settings.setSamples(4);
settings.setStencilBits(0);
settings.setFrameRate(-1);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,7 @@ public void onCreate(Bundle savedInstanceState) {

try {
app = createApplication();

AppSettings settings = createSettings();
configureSettings(settings);
app.setSettings(settings);
app.start();

OGLESContext context = (OGLESContext) app.getContext();
context.setSystemListener(this);
} catch (Exception exception) {
Expand All @@ -117,25 +112,6 @@ public void onCreate(Bundle savedInstanceState) {
*/
protected abstract LegacyApplication createApplication() throws Exception;

/**
* Creates the default Android settings. Subclasses can override this when
* they need to replace the settings object rather than adjust it.
*
* @return default settings for Android
*/
protected AppSettings createSettings() {
AppSettings settings = new AppSettings(true);
settings.setAudioRenderer(AppSettings.ANDROID_OPENAL_SOFT);
return settings;
}

/**
* Customizes the settings before the application starts.
*
* @param settings the settings to customize
*/
protected void configureSettings(AppSettings settings) {
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class JmeAndroidSystem extends JmeSystemDelegate {

private static View view;
private static String audioRendererType = AppSettings.ANDROID_OPENAL_SOFT;
private static String audioRendererType = AppSettings.OPENAL;

static {
try {
Expand Down Expand Up @@ -83,11 +83,11 @@ public JmeContext newContext(AppSettings settings, Type contextType) {
audioRendererType = null;
} else if (settings.getAudioRenderer().equals(AppSettings.ANDROID_MEDIAPLAYER)) {
audioRendererType = AppSettings.ANDROID_MEDIAPLAYER;
} else if (settings.getAudioRenderer().equals(AppSettings.ANDROID_OPENAL_SOFT)) {
} else if (settings.getAudioRenderer().equals(AppSettings.ANDROID_OPENAL_SOFT)||settings.getAudioRenderer().equals(AppSettings.OPENAL)) {
audioRendererType = AppSettings.ANDROID_OPENAL_SOFT;
} else {
logger.log(Level.INFO, "AudioRenderer not set. Defaulting to OpenAL Soft");
audioRendererType = AppSettings.ANDROID_OPENAL_SOFT;
audioRendererType = AppSettings.OPENAL;
}
Comment thread
riccardobl marked this conversation as resolved.
Outdated
initialize(settings);
JmeContext ctx = new OGLESContext();
Expand Down
36 changes: 0 additions & 36 deletions jme3-android/src/main/java/com/jme3/view/package-info.java

This file was deleted.

Loading
Loading