Class SoGLScreenDevice

java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.devices.SoGLScreenDevice

public class SoGLScreenDevice extends Inventor
GL Screen device class. This class is used to query screen properties. You can query, for example, the resolution in pixels of the device. The list of screens connected to a GPU can be retrieved from the function SoGLDevice.getScreenDevice. The main screen connected to a GPU can be retrieved from the function SoGLDevice.getMainScreenDevice.

See Also:
  • Method Details

    • getColorDepth

      public int getColorDepth()
      Returns the number of bits per pixel of the device.
    • getPhysicalSize

      public SbVec2f getPhysicalSize()
      Returns the device's physical size (in millimeters).
    • getResolution

      public SbVec2i32 getResolution()
      Returns the device's resolution in pixels.
    • getGLDevice

      public SoGLDevice getGLDevice()
      Returns the SoGLDevice object on which the device is connected.
    • getName

      public String getName()
      Returns an user presentable string representing the device.