28package com.jogamp.opengl.util.stereo;
30import com.jogamp.math.FovHVHalves;
31import com.jogamp.math.Vec3f;
32import com.jogamp.nativewindow.util.DimensionImmutable;
33import com.jogamp.nativewindow.util.PointImmutable;
35import jogamp.opengl.Debug;
41 public static final boolean DEBUG = Debug.debug(
"StereoDevice");
42 public static final boolean DUMP_DATA = Debug.isPropertyDefined(
"jogl.debug.StereoDevice.DumpData",
true);
148 public boolean startSensors(
int desiredSensorBits,
int requiredSensorBits);
248 final int textureCount,
final Vec3f eyePositionOffset,
249 final FovHVHalves[] eyeFov,
final float pixelsPerDisplayPixel,
final int textureUnit);
Horizontal and vertical field of view (FOV) halves, allowing a non-centered projection.
3D Vector based upon three float components.
Constant parameter of the positioning sensor to locate the ViewerPose.
Platform agnostic StereoDevice factory.
Immutable Dimension Interface, consisting of it's read only components:
Immutable Point interface.
Stereoscopic device rendering interface.
Interface describing a native stereoscopic device.
DimensionImmutable getSurfaceSize()
Returns the required surface size in pixel in target space.
Vec3f getDefaultEyePositionOffset()
Return the device default eye position offset for createRenderer(int, int, Vec3f, FovHVHalves[],...
static final boolean DUMP_DATA
int getMinimumDistortionBits()
Returns the minimum distortion compensation bits as required by the StereoDeviceRenderer,...
int getSupportedDistortionBits()
Returns the supported distortion compensation of the StereoDeviceRenderer, e.g.
boolean startSensors(int desiredSensorBits, int requiredSensorBits)
Start desired and required sensors.
boolean stopSensors()
Stop sensors.
PointImmutable getPosition()
If operation within a device spanning virtual desktop, returns the device position.
static final boolean DEBUG
static final int SENSOR_POSITION
Sensor Bit: Positional tracking.
int getRecommendedDistortionBits()
Returns the recommended distortion compensation bits for the StereoDeviceRenderer,...
boolean getSensorsStarted()
Return true if sensors have been started, false otherwise.
StereoDeviceRenderer createRenderer(final int distortionBits, final int textureCount, final Vec3f eyePositionOffset, final FovHVHalves[] eyeFov, final float pixelsPerDisplayPixel, final int textureUnit)
Create a new StereoDeviceRenderer instance.
FovHVHalves[] getDefaultFOV()
Returns the device default FovHVHalves for all supported eyes in natural order, i....
void resetLocationSensorOrigin()
Sets the location sensor's origin of this device to the current position.
static final int SENSOR_YAW_CORRECTION
Sensor Bit: Yaw correction.
static final int SENSOR_ORIENTATION
Sensor Bit: Orientation tracking.
int getSupportedSensorBits()
Returns the supported sensor capability bits, e.g.
int[] getEyeRenderOrder()
Returns an array of the preferred eye rendering order.
boolean isValid()
Returns true, if instance is created and not disposed, otherwise returns false.
void dispose()
Disposes this StereoDevice, if valid.
int getEnabledSensorBits()
Returns the actual used sensor capability bits, e.g.
LocationSensorParameter getLocationSensorParams()
Returns the LocationSensorParameter of the device if SENSOR_POSITION is supported,...
StereoDeviceFactory getFactory()
Return the factory used to create this device.
int getRequiredRotation()
Returns the CCW rotation as required by this display device.