public interface StereoDevice
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
static float[] |
DEFAULT_EYE_POSITION_OFFSET
Default eye position offset for
#createRenderer(int, int, float[], FovHVHalves[], float) . |
Modifier and Type | Method and Description |
---|---|
StereoDeviceRenderer |
createRenderer(int distortionBits,
int textureCount,
float[] eyePositionOffset,
FovHVHalves[] eyeFov,
float pixelsPerDisplayPixel,
int textureUnit)
Create a new
StereoDeviceRenderer instance. |
void |
dispose()
Disposes this
StereoDevice . |
FovHVHalves[] |
getDefaultFOV()
Returns the device default
FovHVHalves per eye. |
PointImmutable |
getPosition()
If operation within a device spanning virtual desktop,
returns the device position.
|
boolean |
getSensorsStarted()
Return true if sensors have been started, false otherwise
|
DimensionImmutable |
getSurfaceSize()
Returns the required surface size in pixel.
|
boolean |
startSensors(boolean start)
Start or stop sensors.
|
static final boolean DEBUG
static final float[] DEFAULT_EYE_POSITION_OFFSET
#createRenderer(int, int, float[], FovHVHalves[], float)
.
Default offset is 1.6f up and 5.0f away.
void dispose()
StereoDevice
.PointImmutable getPosition()
Otherwise simply 0/0.
DimensionImmutable getSurfaceSize()
FovHVHalves[] getDefaultFOV()
FovHVHalves
per eye.boolean startSensors(boolean start)
boolean getSensorsStarted()
StereoDeviceRenderer createRenderer(int distortionBits, int textureCount, float[] eyePositionOffset, FovHVHalves[] eyeFov, float pixelsPerDisplayPixel, int textureUnit)
StereoDeviceRenderer
instance.distortionBits
- StereoDeviceRenderer
distortion bits, e.g. StereoDeviceRenderer.DISTORTION_BARREL
, etc.textureCount
- desired texture count for post-processing, see StereoDeviceRenderer.getTextureCount()
and StereoDeviceRenderer.ppRequired()
eyePositionOffset
- eye position offset, e.g. DEFAULT_EYE_POSITION_OFFSET
.eyeFov
- FovHVHalves[2] field-of-view per eyepixelsPerDisplayPixel
- textureUnit
- Copyright 2010 JogAmp Community.