Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[updated] Everything to use the latest source formatter. Yay! Use it,…
… love it!
- Loading branch information
nathan.sweet
committed
Aug 14, 2011
1 parent
471911b
commit 2f412de
Showing
1,005 changed files
with
48,756 additions
and
57,890 deletions.
There are no files selected for viewing
537 changes: 263 additions & 274 deletions
537
backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidApplication.java
Large diffs are not rendered by default.
Oops, something went wrong.
39 changes: 18 additions & 21 deletions
39
...ackend-android/src/com/badlogic/gdx/backends/android/AndroidApplicationConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,41 @@ | ||
|
||
package com.badlogic.gdx.backends.android; | ||
|
||
import android.os.PowerManager.WakeLock; | ||
|
||
import com.badlogic.gdx.backends.android.surfaceview.FillResolutionStrategy; | ||
import com.badlogic.gdx.backends.android.surfaceview.ResolutionStrategy; | ||
|
||
/** | ||
* Class defining the configuration of an {@link AndroidApplication}. Allows you | ||
* to disable the use of the accelerometer to save battery among other things. | ||
* @author mzechner | ||
* | ||
*/ | ||
/** Class defining the configuration of an {@link AndroidApplication}. Allows you to disable the use of the accelerometer to save | ||
* battery among other things. | ||
* @author mzechner */ | ||
public class AndroidApplicationConfiguration { | ||
/** whether to use OpenGL ES 2.0 or not. default: false **/ | ||
public boolean useGL20 = false; | ||
|
||
/** number of bits per color channel **/ | ||
public int r = 5, g = 6, b = 5, a = 0; | ||
|
||
/** number of bits for depth and stencil buffer **/ | ||
public int depth = 16, stencil = 0; | ||
public int depth = 16, stencil = 0; | ||
|
||
/** number of samples for CSAA/MSAA, 2 is a good value **/ | ||
public int numSamples = 0; | ||
|
||
/** whether to use the accelerometer. default: true **/ | ||
public boolean useAccelerometer = true; | ||
|
||
/** whether to use the compass. default: true **/ | ||
public boolean useCompass = true; | ||
/** the time in milliseconds to sleep after each event in the touch handler, set this | ||
* to 16ms to get rid of touch flooding on pre Android 2.0 devices. default: 0 **/ | ||
public boolean useCompass = true; | ||
|
||
/** the time in milliseconds to sleep after each event in the touch handler, set this to 16ms to get rid of touch flooding on | ||
* pre Android 2.0 devices. default: 0 **/ | ||
public int touchSleepTime = 0; | ||
|
||
/** whether to use a {@link WakeLock} or not. In case this is true you have to | ||
* add the permission "android.permission.WAKE_LOCK" to your manifest file. default: false | ||
*/ | ||
|
||
/** whether to use a {@link WakeLock} or not. In case this is true you have to add the permission "android.permission.WAKE_LOCK" | ||
* to your manifest file. default: false */ | ||
public boolean useWakelock = false; | ||
|
||
/** the {@link ResolutionStrategy}. default: {@link FillResolutionStrategy} **/ | ||
public ResolutionStrategy resolutionStrategy = new FillResolutionStrategy(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.