Package com.jogamp.opengl.util.stereo
Class StereoDeviceFactory
- java.lang.Object
-
- com.jogamp.opengl.util.stereo.StereoDeviceFactory
-
- Direct Known Subclasses:
GenericStereoDeviceFactory
public abstract class StereoDeviceFactory extends Object
Platform agnosticStereoDevice
factory.To implement a new
StereoDevice
, the following interfaces/classes must be implemented:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StereoDeviceFactory.DeviceType
StereoDevice
type used forcreateFactory(type)
.
-
Constructor Summary
Constructors Constructor Description StereoDeviceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static StereoDeviceFactory
createDefaultFactory()
StereoDevice
createDevice(int deviceIndex, StereoDeviceConfig config, boolean verbose)
static StereoDeviceFactory
createFactory(StereoDeviceFactory.DeviceType type)
static StereoDeviceFactory
createFactory(ClassLoader cl, String implName)
abstract boolean
isValid()
abstract void
shutdown()
Shutdown factory ifvalid
.
-
-
-
Method Detail
-
createDefaultFactory
public static StereoDeviceFactory createDefaultFactory()
-
createFactory
public static StereoDeviceFactory createFactory(StereoDeviceFactory.DeviceType type)
-
createFactory
public static StereoDeviceFactory createFactory(ClassLoader cl, String implName)
-
createDevice
public final StereoDevice createDevice(int deviceIndex, StereoDeviceConfig config, boolean verbose)
- Parameters:
deviceIndex
-config
- optional custom configuration, matching the implementation, i.e.StereoDeviceConfig.GenericStereoDeviceConfig
.verbose
-- Returns:
-
isValid
public abstract boolean isValid()
-
shutdown
public abstract void shutdown()
Shutdown factory ifvalid
.
-
-