Package arc.backend.android
Class AndroidApplicationConfiguration
java.lang.Object
arc.backend.android.AndroidApplicationConfiguration
Class defining the configuration of an
AndroidApplication
. Allows you to disable the use of the accelerometer to save
battery among other things.-
Field Summary
Modifier and TypeFieldDescriptionint
number of bits per color channelint
number of bits per color channelint
number of bits for depth and stencil bufferboolean
whether to disable Android audio support.int
number of bits per color channelboolean
hide status bar buttons on Android 4.x and higher (API 14+).int
number of samples for CSAA/MSAA, 2 is a good valueint
number of bits per color channeltheResolutionStrategy
.int
The requested sensor sampling rate in microseconds or one of theSENSOR_DELAY_*
constants inSensorManager
.int
number of bits for depth and stencil bufferboolean
whether to use the accelerometer.boolean
Whether to use the compass.boolean
Whether to enable OpenGL ES 3 if supported.boolean
whether to use the gyroscope.boolean
set this to true to enable Android 4.4 KitKat's 'Immersive mode'boolean
Whether to use Android's rotation vector software sensor, which provides cleaner data than that ofuseCompass
forInput.getRotationMatrix(float[])
The rotation vector sensor uses a combination of physical sensors, and it pre-filters and smoothes the data.boolean
whether to keep the screen on and at full brightness or not while running the application. -
Constructor Summary
-
Method Summary
-
Field Details
-
r
public int rnumber of bits per color channel -
g
public int gnumber of bits per color channel -
b
public int bnumber of bits per color channel -
a
public int anumber of bits per color channel -
depth
public int depthnumber of bits for depth and stencil buffer -
stencil
public int stencilnumber of bits for depth and stencil buffer -
numSamples
public int numSamplesnumber of samples for CSAA/MSAA, 2 is a good value -
useAccelerometer
public boolean useAccelerometerwhether to use the accelerometer. default: false -
useGyroscope
public boolean useGyroscopewhether to use the gyroscope. default: false -
useCompass
public boolean useCompassWhether to use the compass. The compass enablesInput.getRotationMatrix(float[])
, ifuseAccelerometer
is also true.If
useRotationVectorSensor
is true and the rotation vector sensor is available, the compass will not be used.Default: false
-
useRotationVectorSensor
public boolean useRotationVectorSensorWhether to use Android's rotation vector software sensor, which provides cleaner data than that ofuseCompass
forInput.getRotationMatrix(float[])
The rotation vector sensor uses a combination of physical sensors, and it pre-filters and smoothes the data. If true,useAccelerometer
is not required to enable rotation data.If true and the rotation vector sensor is available, the compass will not be used, regardless of
useCompass
.Default: false
-
sensorDelay
public int sensorDelayThe requested sensor sampling rate in microseconds or one of theSENSOR_DELAY_*
constants inSensorManager
.Default:
SensorManager.SENSOR_DELAY_GAME
(20 ms updates). -
useWakelock
public boolean useWakelockwhether to keep the screen on and at full brightness or not while running the application. default: false. Uses FLAG_KEEP_SCREEN_ON under the hood. -
hideStatusBar
public boolean hideStatusBarhide status bar buttons on Android 4.x and higher (API 14+). default: true -
disableAudio
public boolean disableAudiowhether to disable Android audio support. default: false -
resolutionStrategy
theResolutionStrategy
. default:FillResolutionStrategy
-
useImmersiveMode
public boolean useImmersiveModeset this to true to enable Android 4.4 KitKat's 'Immersive mode' -
useGL30
public boolean useGL30Whether to enable OpenGL ES 3 if supported. If not supported it will fall-back to OpenGL ES 2.0. When GL ES 3* is enabled,Core.gl30
can be used to access its functionality. Requires at least Android 4.3 (API level 18).
-
-
Constructor Details
-
AndroidApplicationConfiguration
public AndroidApplicationConfiguration()
-