Class StereoDeviceFactory

java.lang.Object
com.jogamp.opengl.util.stereo.StereoDeviceFactory
Direct Known Subclasses:
GenericStereoDeviceFactory

public abstract class StereoDeviceFactory extends Object
Platform agnostic StereoDevice factory.

To implement a new StereoDevice, the following interfaces/classes must be implemented:

  • Constructor Details

    • StereoDeviceFactory

      public StereoDeviceFactory()
  • Method Details

    • 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()
      Returns true, if instance is created and not shutdown() otherwise returns false.
    • shutdown

      public abstract void shutdown()
      Shutdown factory if valid.