Class GenericStereoDeviceFactory
- java.lang.Object
-
- com.jogamp.opengl.util.stereo.StereoDeviceFactory
-
- com.jogamp.opengl.util.stereo.generic.GenericStereoDeviceFactory
-
public class GenericStereoDeviceFactory extends StereoDeviceFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jogamp.opengl.util.stereo.StereoDeviceFactory
StereoDeviceFactory.DeviceType
-
-
Constructor Summary
Constructors Constructor Description GenericStereoDeviceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GenericStereoDeviceConfig
createMono(String name, DimensionImmutable surfaceSizeInPixel, float[] screenSizeInMeters, float[] defaultEyePositionOffset)
Create a generic monoscopicgeneric device config
.static GenericStereoDeviceConfig
createStereoSBS(String name, DimensionImmutable surfaceSizeInPixel, float[] screenSizeInMeters, float interpupillaryDistanceInMeters, float fovy, float[] defaultEyePositionOffset)
Create a generic homogenous side-by-side stereoscopicgeneric device config
.static GenericStereoDeviceConfig
createStereoSBSLense(String name, DimensionImmutable surfaceSizeInPixel, float[] screenSizeInMeters, float interpupillaryDistanceInMeters, float fovy, DimensionImmutable eyeTextureSize, float[] defaultEyePositionOffset)
Create a generic lense distorted side-by-side stereoscopicgeneric device config
.static boolean
isAvailable()
boolean
isValid()
Returnstrue
, if instance is created and notStereoDeviceFactory.shutdown()
otherwise returnsfalse
.void
shutdown()
Shutdown factory ifvalid
.-
Methods inherited from class com.jogamp.opengl.util.stereo.StereoDeviceFactory
createDefaultFactory, createDevice, createFactory, createFactory
-
-
-
-
Method Detail
-
createMono
public static GenericStereoDeviceConfig createMono(String name, DimensionImmutable surfaceSizeInPixel, float[] screenSizeInMeters, float[] defaultEyePositionOffset)
Create a generic monoscopicgeneric device config
.- Parameters:
name
-surfaceSizeInPixel
-screenSizeInMeters
-defaultEyePositionOffset
-
-
createStereoSBS
public static GenericStereoDeviceConfig createStereoSBS(String name, DimensionImmutable surfaceSizeInPixel, float[] screenSizeInMeters, float interpupillaryDistanceInMeters, float fovy, float[] defaultEyePositionOffset)
Create a generic homogenous side-by-side stereoscopicgeneric device config
.- Parameters:
name
-surfaceSizeInPixel
-screenSizeInMeters
-interpupillaryDistanceInMeters
-fovy
-defaultEyePositionOffset
-
-
createStereoSBSLense
public static GenericStereoDeviceConfig createStereoSBSLense(String name, DimensionImmutable surfaceSizeInPixel, float[] screenSizeInMeters, float interpupillaryDistanceInMeters, float fovy, DimensionImmutable eyeTextureSize, float[] defaultEyePositionOffset)
Create a generic lense distorted side-by-side stereoscopicgeneric device config
.- Parameters:
name
-surfaceSizeInPixel
-screenSizeInMeters
-interpupillaryDistanceInMeters
-fovy
-eyeTextureSize
-defaultEyePositionOffset
-
-
isAvailable
public static boolean isAvailable()
-
isValid
public boolean isValid()
Description copied from class:StereoDeviceFactory
Returnstrue
, if instance is created and notStereoDeviceFactory.shutdown()
otherwise returnsfalse
.- Specified by:
isValid
in classStereoDeviceFactory
-
shutdown
public final void shutdown()
Description copied from class:StereoDeviceFactory
Shutdown factory ifvalid
.- Specified by:
shutdown
in classStereoDeviceFactory
-
-